docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ColorParameter

    A VolumeParameter that holds a Color value.

    Inheritance
    object
    VolumeParameter
    VolumeParameter<Color>
    ColorParameter
    Implements
    IEquatable<VolumeParameter<Color>>
    Inherited Members
    VolumeParameter<Color>.m_Value
    VolumeParameter<Color>.value
    VolumeParameter<Color>.Override(Color)
    VolumeParameter<Color>.SetValue(VolumeParameter)
    VolumeParameter<Color>.GetHashCode()
    VolumeParameter<Color>.ToString()
    VolumeParameter<Color>.Equals(VolumeParameter<Color>)
    VolumeParameter<Color>.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 ColorParameter : VolumeParameter<Color>, IEquatable<VolumeParameter<Color>>

    Constructors

    ColorParameter(Color, bool)

    Creates a new ColorParameter instance.

    Declaration
    public ColorParameter(Color value, bool overrideState = false)
    Parameters
    Type Name Description
    Color value

    The initial value to store in the parameter.

    bool overrideState

    The initial override state for the parameter.

    See Also
    NoInterpColorParameter

    ColorParameter(Color, bool, bool, bool, bool)

    Creates a new ColorParameter instance.

    Declaration
    public ColorParameter(Color value, bool hdr, bool showAlpha, bool showEyeDropper, bool overrideState = false)
    Parameters
    Type Name Description
    Color value

    The initial value to store in the parameter.

    bool hdr

    Specifies whether the color is HDR or not.

    bool showAlpha

    Specifies whether you can edit the alpha channel in the Inspector or not.

    bool showEyeDropper

    Specifies whether the eye dropper is visible in the editor or not.

    bool overrideState

    The initial override state for the parameter.

    See Also
    NoInterpColorParameter

    Fields

    hdr

    Is this color HDR?

    Declaration
    [NonSerialized]
    public bool hdr
    Field Value
    Type Description
    bool
    See Also
    NoInterpColorParameter

    showAlpha

    Should the alpha channel be editable in the editor?

    Declaration
    [NonSerialized]
    public bool showAlpha
    Field Value
    Type Description
    bool
    See Also
    NoInterpColorParameter

    showEyeDropper

    Should the eye dropper be visible in the editor?

    Declaration
    [NonSerialized]
    public bool showEyeDropper
    Field Value
    Type Description
    bool
    See Also
    NoInterpColorParameter

    Methods

    Interp(Color, Color, float)

    Interpolates between two Color values.

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

    The start value.

    Color to

    The end value.

    float t

    The interpolation factor in range [0,1].

    Overrides
    VolumeParameter<Color>.Interp(Color, Color, float)
    Remarks

    For performance reasons, this function interpolates the RGBA channels directly.

    See Also
    NoInterpColorParameter

    Implements

    IEquatable<T>

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)

    See Also

    NoInterpColorParameter
    In This Article
    Back to top
    Copyright © 2025 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)