docs.unity3d.com
    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 when 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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023