docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TextureColorProps

    TextureColorProps(MaterialEditor, GUIContent, MaterialProperty, MaterialProperty, bool)

    Helper function to show texture and color properties.

    Declaration
    public static Rect TextureColorProps(MaterialEditor materialEditor, GUIContent label, MaterialProperty textureProp, MaterialProperty colorProp, bool hdr = false)
    Parameters
    Type Name Description
    MaterialEditor materialEditor

    The material editor to use.

    GUIContent label

    The label to use.

    MaterialProperty textureProp

    The texture property.

    MaterialProperty colorProp

    The color property.

    bool hdr

    Marks whether this is a HDR texture or not.

    Returns
    Type Description
    Rect
    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)