docs.unity3d.com
    Show / Hide Table of Contents

    Class MaterialHeaderScopeList

    Collection to store UnityEditor.Rendering.MaterialHeaderScopeItem

    Inheritance
    Object
    MaterialHeaderScopeList
    Namespace: UnityEditor.Rendering
    Syntax
    public class MaterialHeaderScopeList

    Constructors

    MaterialHeaderScopeList(UInt32)

    Constructor that initializes it with the default expanded state for the internal scopes

    Declaration
    public MaterialHeaderScopeList(uint defaultExpandedState = 4294967295U)
    Parameters
    Type Name Description
    UInt32 defaultExpandedState

    By default, everything is expanded

    Methods

    DrawHeaders(MaterialEditor, Material)

    Draws all the UnityEditor.Rendering.MaterialHeaderScopeItem with its information stored

    Declaration
    public void DrawHeaders(MaterialEditor materialEditor, Material material)
    Parameters
    Type Name Description
    MaterialEditor materialEditor MaterialEditor
    Material material Material

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

    Registers a UnityEditor.Rendering.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

    The enum for the scope

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Terms of use
    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