Class ScalableSettingValue<T>
Define a value that can be either customized or fetched from a current quality settings' sub level.
If you intend to serialize this type, use specialized version instead. (IntScalableSetting).
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
public class ScalableSettingValue<T>
Type Parameters
Name | Description |
---|---|
T | The type of the scalable setting. |
Properties
level
The level to use in the associated ScalableSetting<T>.
Declaration
public int level { get; set; }
Property Value
Type | Description |
---|---|
int |
override
The value to use when useOverride is true
.
Declaration
public T @override { get; set; }
Property Value
Type | Description |
---|---|
T |
useOverride
Defines whether the override value is used or not.
Declaration
public bool useOverride { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
CopyTo(ScalableSettingValue<T>)
Copy the values of this instance to target
.
Declaration
public void CopyTo(ScalableSettingValue<T> target)
Parameters
Type | Name | Description |
---|---|---|
ScalableSettingValue<T> | target | The target of the copy. Must not be null. |
Value(ScalableSetting<T>)
Resolve the actual value to use.
Declaration
public T Value(ScalableSetting<T> source)
Parameters
Type | Name | Description |
---|---|---|
ScalableSetting<T> | source | The scalable setting to use when resolving level values. Must not be |
Returns
Type | Description |
---|---|
T | The override value if useOverride is |