docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RegisterHeaderScope

    RegisterHeaderScope<TEnum>(GUIContent, TEnum, Action<Material>)

    Registers a MaterialHeaderScopeItem into the list

    Declaration
    public void RegisterHeaderScope<TEnum>(GUIContent title, TEnum expandable, Action<Material> action) where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent title

    GUIContent The title of the scope

    TEnum expandable

    The mask identifying the scope

    Action<Material> action

    The action that will be drawn if the scope is expanded

    Type Parameters
    Name Description
    TEnum

    A valid struct and IConvertible

    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)