docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MaterialHeaderScopeList

    Collection to store MaterialHeaderScopeItem

    Inheritance
    object
    MaterialHeaderScopeList
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public class MaterialHeaderScopeList

    Constructors

    MaterialHeaderScopeList(uint)

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

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

    By default, everything is expanded

    Methods

    DrawHeaders(MaterialEditor, Material)

    Draws all the 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 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

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 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)