docs.unity3d.com
    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.k_DebuggerDisplay
    VolumeParameter.m_OverrideState
    VolumeParameter.overrideState
    VolumeParameter.GetValue<T>()
    VolumeParameter.OnEnable()
    VolumeParameter.OnDisable()
    VolumeParameter.IsObjectParameter(Type)
    VolumeParameter.Release()
    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public class FloatParameter : VolumeParameter<float>, 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

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