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).
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
public class ScalableSettingValue<T> : object
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 |
|---|---|
| Int32 |
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 |
|---|---|
| Boolean |
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 whne resolving level values. Must not be |
Returns
| Type | Description |
|---|---|
| T | The override value if useOverride is |