docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetColor

    SetColor(string, Color)

    Sets the value of a color shader global and adds it to the list of globals to transfer via PolySpatial.

    Declaration
    public static void SetColor(string name, Color value)
    Parameters
    Type Name Description
    string name

    The name of the shader global to set.

    Color value

    The new value for the shader global.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023