docs.unity.cn
    Show / Hide Table of Contents

    Class FloatParameter

    A VolumeParameter that holds a float value.

    Inheritance
    Object
    VolumeParameter
    VolumeParameter<Single>
    FloatParameter
    ClampedFloatParameter
    MaxFloatParameter
    MinFloatParameter
    Inherited Members
    VolumeParameter<Single>.m_Value
    VolumeParameter<Single>.value
    VolumeParameter<Single>.Override(Single)
    VolumeParameter<Single>.SetValue(VolumeParameter)
    VolumeParameter<Single>.GetHashCode()
    VolumeParameter<Single>.ToString()
    VolumeParameter<Single>.Equals(VolumeParameter<Single>)
    VolumeParameter<Single>.Equals(Object)
    VolumeParameter<Single>.Clone()
    VolumeParameter.k_DebuggerDisplay
    VolumeParameter.m_OverrideState
    VolumeParameter.overrideState
    VolumeParameter.GetValue<T>()
    VolumeParameter.OnEnable()
    VolumeParameter.OnDisable()
    VolumeParameter.IsObjectParameter(Type)
    VolumeParameter.Release()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public class FloatParameter : VolumeParameter<float>, ICloneable, IEquatable<VolumeParameter<float>>

    Constructors

    FloatParameter(Single, Boolean)

    Creates a new FloatParameter instance.

    Declaration
    public FloatParameter(float value, bool overrideState = false)
    Parameters
    Type Name Description
    Single value

    The initial value to store in the parameter

    Boolean overrideState

    The initial override state for the parameter

    Methods

    Interp(Single, Single, Single)

    Interpolates between two float values.

    Declaration
    public sealed override void Interp(float from, float to, float t)
    Parameters
    Type Name Description
    Single from

    The start value

    Single to

    The end value

    Single t

    The interpolation factor in range [0,1]

    Overrides
    UnityEngine.Rendering.VolumeParameter<System.Single>.Interp(System.Single, System.Single, System.Single)

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)

    See Also

    MinFloatParameter
    MaxFloatParameter
    ClampedFloatParameter
    FloatRangeParameter
    NoInterpFloatParameter
    NoInterpMinFloatParameter
    NoInterpMaxFloatParameter
    NoInterpClampedFloatParameter
    NoInterpFloatRangeParameter
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023