docs.unity.cn
    Show / Hide Table of Contents

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

    Inheritance
    Object
    ScalableSettingValue<T>
    BoolScalableSettingValue
    FloatScalableSettingValue
    IntScalableSettingValue
    ProbeSettings.PlanarReflectionAtlasResolutionScalableSettingValue
    UintScalableSettingValue
    Namespace: UnityEngine.Rendering.HighDefinition
    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
    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 null.

    Returns
    Type Description
    T

    The override value if useOverride is true is returned Otherwise the level value of source for level is returned.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 18 October 2021