docs.unity.cn
    Show / Hide Table of Contents

    Class SplineParameter

    A ParameterOverride<T> that holds a Spline value.

    Inheritance
    Object
    ParameterOverride
    ParameterOverride<Spline>
    SplineParameter
    Inherited Members
    ParameterOverride<Spline>.value
    ParameterOverride<Spline>.Override(Spline)
    ParameterOverride<Spline>.GetHash()
    ParameterOverride.overrideState
    ParameterOverride.GetValue<T>()
    ParameterOverride.OnDisable()
    Namespace: UnityEngine.Rendering.PostProcessing
    Syntax
    public sealed class SplineParameter : ParameterOverride<Spline>
    Remarks

    The interpolation method for this parameter is the same as for each point on the curve.

    Methods

    Interp(Spline, Spline, Single)

    Interpolates between two values given an interpolation factor t.

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

    The value to interpolate from

    Spline to

    The value to interpolate to

    Single t

    An interpolation factor (generally in range [0,1])

    Overrides
    UnityEngine.Rendering.PostProcessing.ParameterOverride<UnityEngine.Rendering.PostProcessing.Spline>.Interp(UnityEngine.Rendering.PostProcessing.Spline, UnityEngine.Rendering.PostProcessing.Spline, System.Single)
    Remarks

    By default this method does a "snap" interpolation, meaning it will return the value to if t is higher than 0, from otherwise.

    OnEnable()

    This method is called right after the parent PostProcessEffectSettings has been initialized. This is used in case you need to access fields or properties that can't be accessed in the constructor of a (ParameterOverride objects are generally declared and initialized in a PostProcessEffectSettings).

    Declaration
    protected override void OnEnable()
    Overrides
    ParameterOverride.OnEnable()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, April 14, 2022
    Terms of use