docs.unity3d.com
Search Results for

    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.CubeReflectionResolutionScalableSettingValue
    ProbeSettings.PlanarReflectionAtlasResolutionScalableSettingValue
    UintScalableSettingValue
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 null.

    Returns
    Type Description
    T

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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)