docs.unity.cn
    Show / Hide Table of Contents

    Class ColorParameter

    A ParameterOverride<T> that holds a value.

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

    The interpolation method for this parameter is the same as for each channel.

    Methods

    Interp(Color, Color, Single)

    Interpolates between two values given an interpolation factor t.

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

    The value to interpolate from

    Color to

    The value to interpolate to

    Single t

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

    Overrides
    UnityEngine.Rendering.PostProcessing.ParameterOverride<Color>.Interp(Color, Color, 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.

    Operators

    Implicit(ColorParameter to Vector4)

    Implicit conversion between ColorParameter and a .

    Declaration
    public static implicit operator Vector4(ColorParameter prop)
    Parameters
    Type Name Description
    ColorParameter prop

    The parameter to implicitly cast

    Returns
    Type Description
    Vector4

    A Vector4.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, April 14, 2022
    Terms of use