docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetColorOrTextureProperty

    SetColorOrTextureProperty(uint, string, ColorOrTexture)

    Set a ColorOrTexture property

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void SetColorOrTextureProperty(uint material, string name, ColorOrTexture colorOrTexture)
    Parameters
    Type Name Description
    uint material

    The material to apply the color on

    string name

    The property to set

    ColorOrTexture colorOrTexture

    The ColorOrTexture to apply

    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)