GraphicsSettings
class in UnityEngine.Rendering
/
Inherits from:Object
/
Implemented in:UnityEngine.CoreModule
Description 描述
Script interface for Graphics Settings.
Static Properties
| lightsUseColorTemperature | Whether to use a Light's color temperature when calculating the final color of that Light." | ||
| lightsUseLinearIntensity | If this is true, Light intensity is multiplied against linear color values. If it is false, gamma color values are used. | ||
| logWhenShaderIsCompiled | If this is true, a log entry is made each time a shader is compiled at application runtime. | ||
| realtimeDirectRectangularAreaLights | Is the current render pipeline capable of rendering direct lighting for rectangular area Lights? | ||
| renderPipelineAsset | The RenderPipelineAsset that describes how the Scene should be rendered. | ||
| transparencySortAxis | An axis that describes the direction along which the distances of objects are measured for the purpose of sorting. | ||
| transparencySortMode | Transparent object sorting mode. | ||
| useScriptableRenderPipelineBatching | Enable/Disable SRP batcher (experimental) at runtime. |
Static Methods 静态方法
| GetCustomShader | Get custom shader used instead of a built-in shader. | ||
| GetShaderMode | Get built-in shader mode. | ||
| HasShaderDefine | Returns true if shader define was set when compiling shaders for current GraphicsTier. | ||
| SetCustomShader | Set custom shader to use instead of a built-in shader. | ||
| SetShaderMode | Set built-in shader mode. |
Inherited Members 继承成员
Properties 属性
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? | ||
| name | The name of the object. |
Public Methods 公共方法
| GetInstanceID | Returns the instance id of the object. | ||
| ToString | Returns the name of the object. |
Static Methods 静态方法
| Destroy | Removes a GameObject, component or asset. | ||
| DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. | ||
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. | ||
| FindObjectOfType | Returns the first active loaded object of Type type. | ||
| FindObjectsOfType | Returns a list of all active loaded objects of Type type. | ||
| Instantiate | Clones the object original and returns the clone. |
Operators 运算符
| bool | Does the object exist? | ||
| operator != | Compares if two objects refer to a different object. | ||
| operator == | Compares two object references to see if they refer to the same object. |