docs.unity.cn
    Show / Hide Table of Contents

    Class MaterialUIBlockList

    Wrapper to handle Material UI Blocks, it will handle initialization of the blocks when drawing the GUI.

    Inheritance
    Object
    List<MaterialUIBlock>
    MaterialUIBlockList
    Inherited Members
    System.Collections.Generic.List<UnityEditor.Rendering.HighDefinition.MaterialUIBlock>.System.Collections.IList.get_Item(System.Int32)
    System.Collections.Generic.List<UnityEditor.Rendering.HighDefinition.MaterialUIBlock>.System.Collections.IList.set_Item(System.Int32, System.Object)
    List<MaterialUIBlock>.Add(MaterialUIBlock)
    List<MaterialUIBlock>.IList.Add(Object)
    List<MaterialUIBlock>.AddRange(IEnumerable<MaterialUIBlock>)
    List<MaterialUIBlock>.AsReadOnly()
    List<MaterialUIBlock>.BinarySearch(Int32, Int32, MaterialUIBlock, IComparer<MaterialUIBlock>)
    List<MaterialUIBlock>.BinarySearch(MaterialUIBlock)
    List<MaterialUIBlock>.BinarySearch(MaterialUIBlock, IComparer<MaterialUIBlock>)
    List<MaterialUIBlock>.Clear()
    List<MaterialUIBlock>.Contains(MaterialUIBlock)
    List<MaterialUIBlock>.IList.Contains(Object)
    List<MaterialUIBlock>.ConvertAll<TOutput>(Converter<MaterialUIBlock, TOutput>)
    List<MaterialUIBlock>.CopyTo(MaterialUIBlock[])
    List<MaterialUIBlock>.ICollection.CopyTo(Array, Int32)
    List<MaterialUIBlock>.CopyTo(Int32, MaterialUIBlock[], Int32, Int32)
    List<MaterialUIBlock>.CopyTo(MaterialUIBlock[], Int32)
    List<MaterialUIBlock>.Exists(Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.Find(Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.FindAll(Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.FindIndex(Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.FindIndex(Int32, Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.FindIndex(Int32, Int32, Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.FindLast(Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.FindLastIndex(Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.FindLastIndex(Int32, Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.FindLastIndex(Int32, Int32, Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.ForEach(Action<MaterialUIBlock>)
    List<MaterialUIBlock>.GetEnumerator()
    List<MaterialUIBlock>.IEnumerable<MaterialUIBlock>.GetEnumerator()
    List<MaterialUIBlock>.IEnumerable.GetEnumerator()
    List<MaterialUIBlock>.GetRange(Int32, Int32)
    List<MaterialUIBlock>.IndexOf(MaterialUIBlock)
    List<MaterialUIBlock>.IList.IndexOf(Object)
    List<MaterialUIBlock>.IndexOf(MaterialUIBlock, Int32)
    List<MaterialUIBlock>.IndexOf(MaterialUIBlock, Int32, Int32)
    List<MaterialUIBlock>.Insert(Int32, MaterialUIBlock)
    System.Collections.Generic.List<UnityEditor.Rendering.HighDefinition.MaterialUIBlock>.System.Collections.IList.Insert(System.Int32, System.Object)
    List<MaterialUIBlock>.InsertRange(Int32, IEnumerable<MaterialUIBlock>)
    List<MaterialUIBlock>.LastIndexOf(MaterialUIBlock)
    List<MaterialUIBlock>.LastIndexOf(MaterialUIBlock, Int32)
    List<MaterialUIBlock>.LastIndexOf(MaterialUIBlock, Int32, Int32)
    List<MaterialUIBlock>.Remove(MaterialUIBlock)
    List<MaterialUIBlock>.IList.Remove(Object)
    List<MaterialUIBlock>.RemoveAll(Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.RemoveAt(Int32)
    List<MaterialUIBlock>.RemoveRange(Int32, Int32)
    List<MaterialUIBlock>.Reverse()
    System.Collections.Generic.List<UnityEditor.Rendering.HighDefinition.MaterialUIBlock>.Reverse(System.Int32, System.Int32)
    List<MaterialUIBlock>.Sort()
    List<MaterialUIBlock>.Sort(IComparer<MaterialUIBlock>)
    List<MaterialUIBlock>.Sort(Int32, Int32, IComparer<MaterialUIBlock>)
    List<MaterialUIBlock>.Sort(Comparison<MaterialUIBlock>)
    List<MaterialUIBlock>.ToArray()
    List<MaterialUIBlock>.TrimExcess()
    List<MaterialUIBlock>.TrueForAll(Predicate<MaterialUIBlock>)
    List<MaterialUIBlock>.Capacity
    List<MaterialUIBlock>.Count
    List<MaterialUIBlock>.IList.IsFixedSize
    List<MaterialUIBlock>.ICollection<MaterialUIBlock>.IsReadOnly
    List<MaterialUIBlock>.IList.IsReadOnly
    List<MaterialUIBlock>.ICollection.IsSynchronized
    List<MaterialUIBlock>.ICollection.SyncRoot
    List<MaterialUIBlock>.Item[Int32]
    List<MaterialUIBlock>.IList.Item[Int32]
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Rendering.HighDefinition
    Syntax
    public class MaterialUIBlockList : List<MaterialUIBlock>, IList<MaterialUIBlock>, ICollection<MaterialUIBlock>, IList, ICollection, IReadOnlyList<MaterialUIBlock>, IReadOnlyCollection<MaterialUIBlock>, IEnumerable<MaterialUIBlock>, IEnumerable

    Constructors

    MaterialUIBlockList()

    Construct a ui block list

    Declaration
    public MaterialUIBlockList()

    MaterialUIBlockList(MaterialUIBlockList)

    Construct a sub ui block list by passing the parent ui block list (useful for layered UI where ui blocks are nested)

    Declaration
    public MaterialUIBlockList(MaterialUIBlockList parent)
    Parameters
    Type Name Description
    MaterialUIBlockList parent

    Fields

    parent

    Parent of the ui block list, in case of nesting (Layered Lit material)

    Declaration
    public MaterialUIBlockList parent
    Field Value
    Type Description
    MaterialUIBlockList

    Properties

    materials

    List of materials currently selected in the inspector

    Declaration
    public Material[] materials { get; }
    Property Value
    Type Description
    Material[]

    Methods

    FetchUIBlock<T>()

    Fetch the first ui block of type T in the current list of material blocks

    Declaration
    public T FetchUIBlock<T>()
        where T : MaterialUIBlock
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    MaterialUIBlock type

    Initialize(MaterialEditor, MaterialProperty[])

    Initialize the ui blocks This function is called automatically by MaterialUIBlockList.OnGUI so you only need this when you want to render the UI Blocks in a custom order

    Declaration
    public void Initialize(MaterialEditor materialEditor, MaterialProperty[] properties)
    Parameters
    Type Name Description
    MaterialEditor materialEditor

    Material editor instance.

    MaterialProperty[] properties

    The list of properties in the inspected material(s).

    OnGUI(MaterialEditor, MaterialProperty[])

    Render the list of ui blocks

    Declaration
    public void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
    Parameters
    Type Name Description
    MaterialEditor materialEditor
    MaterialProperty[] properties
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023