docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor ColorParameter

    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.

    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.

    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)