Class MaterialUIBlockList
Wrapper to handle Material UI Blocks, it will handle initialization of the blocks when drawing the GUI.
Implements
Inherited Members
Namespace: UnityEditor.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Editor.dll
Syntax
public class MaterialUIBlockList : List<MaterialUIBlock>, IList<MaterialUIBlock>, ICollection<MaterialUIBlock>, IReadOnlyList<MaterialUIBlock>, IReadOnlyCollection<MaterialUIBlock>, IEnumerable<MaterialUIBlock>, IList, ICollection, IEnumerable
Constructors
| Name | Description |
|---|---|
| MaterialUIBlockList() | Construct a ui block list |
| MaterialUIBlockList(MaterialUIBlockList) | Construct a sub ui block list by passing the parent ui block list (useful for layered UI where ui blocks are nested) |
Fields
| Name | Description |
|---|---|
| parent | Parent of the ui block list, in case of nesting (Layered Lit material) |
Properties
| Name | Description |
|---|---|
| materials | List of materials currently selected in the inspector |
Methods
| Name | Description |
|---|---|
| FetchUIBlock<T>() | Fetch the first ui block of type T in the current list of material blocks |
| Initialize(MaterialEditor, MaterialProperty[]) | Initialize the ui blocks
|
| OnGUI(MaterialEditor, MaterialProperty[]) | Render the list of ui blocks |