Version: 2019.1

GraphicsSettings

class in UnityEngine.Rendering

/

Inherits from:Object

Switch to Manual

Description

Script interface for Graphics Settings.

Static Variables

lightsUseColorTemperatureWhether to use a Light's color temperature when calculating the final color of that Light."
lightsUseLinearIntensityIf this is true, Light intensity is multiplied against linear color values. If it is false, gamma color values are used.
renderPipelineAssetThe RenderPipelineAsset that describes how the Scene should be rendered.
transparencySortAxisAn axis that describes the direction along which the distances of objects are measured for the purpose of sorting.
transparencySortModeПрозрачный объект в режим сортировки.
useScriptableRenderPipelineBatchingEnable/Disable SRP batcher (experimental) at runtime.

Static Functions

GetCustomShaderGet custom shader used instead of a built-in shader.
GetShaderModeGet built-in shader mode.
HasShaderDefineReturns true if shader define was set when compiling shaders for current GraphicsTier.
SetCustomShaderSet custom shader to use instead of a built-in shader.
SetShaderModeSet built-in shader mode.

Inherited members

Variables

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public Functions

GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the GameObject.

Static Functions

DestroyУдаляет GameObject, Component или Asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
InstantiateClones the object original and returns the clone.

Operators

boolDoes 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.