docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AnimationCurveParameter

    A VolumeParameter that holds an AnimationCurve value.

    Inheritance
    object
    VolumeParameter
    VolumeParameter<AnimationCurve>
    AnimationCurveParameter
    Implements
    ICloneable
    IEquatable<VolumeParameter<AnimationCurve>>
    Inherited Members
    VolumeParameter<AnimationCurve>.m_Value
    VolumeParameter<AnimationCurve>.value
    VolumeParameter<AnimationCurve>.Override(AnimationCurve)
    VolumeParameter<AnimationCurve>.ToString()
    VolumeParameter<AnimationCurve>.Equals(VolumeParameter<AnimationCurve>)
    VolumeParameter<AnimationCurve>.Equals(object)
    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.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    [Serializable]
    public class AnimationCurveParameter : VolumeParameter<AnimationCurve>, ICloneable, IEquatable<VolumeParameter<AnimationCurve>>

    Constructors

    AnimationCurveParameter(AnimationCurve, bool)

    Creates a new AnimationCurveParameter instance.

    Declaration
    public AnimationCurveParameter(AnimationCurve value, bool overrideState = false)
    Parameters
    Type Name Description
    AnimationCurve value

    The initial value to be stored in the parameter

    bool overrideState

    The initial override state for the parameter

    Methods

    Clone()

    Clones the current instance of the VolumeParameter

    Declaration
    public override object Clone()
    Returns
    Type Description
    object

    A new created instance with the same values as the current instance of VolumeParameter

    Overrides
    VolumeParameter<AnimationCurve>.Clone()

    GetHashCode()

    Returns a hash code for the animationCurve.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the animationCurve.

    Overrides
    VolumeParameter<AnimationCurve>.GetHashCode()

    Interp(AnimationCurve, AnimationCurve, float)

    Interpolates between two AnimationCurve values. Note that it will overwrite the values in lhsCurve, whereas rhsCurve data will be unchanged. Thus, it is legal to call it as: stateParam.Interp(stateParam, toParam, interpFactor); However, It should NOT be called when the lhsCurve parameter needs to be preserved. But the current framework modifies it anyway in VolumeComponent.Override for all types of VolumeParameters

    Declaration
    public override void Interp(AnimationCurve lhsCurve, AnimationCurve rhsCurve, float t)
    Parameters
    Type Name Description
    AnimationCurve lhsCurve

    The start value.

    AnimationCurve rhsCurve

    The end value.

    float t

    The interpolation factor in range [0,1].

    Overrides
    VolumeParameter<AnimationCurve>.Interp(AnimationCurve, AnimationCurve, float)

    SetValue(VolumeParameter)

    Sets the value of this parameter to the value in parameter.

    Declaration
    public override void SetValue(VolumeParameter parameter)
    Parameters
    Type Name Description
    VolumeParameter parameter

    The VolumeParameter to copy the value from.

    Overrides
    VolumeParameter<AnimationCurve>.SetValue(VolumeParameter)

    Implements

    ICloneable
    IEquatable<T>

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    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)