docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Interp

    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)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)