Version 2.1.0.0

AssetListAttributeDrawer<TList, TElement> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
[DrawerPriority(DrawerPriorityLevel.AttributePriority)]
public sealed class AssetListAttributeDrawer<TList, TElement> : OdinAttributeDrawer<AssetListAttribute, TList>, IDefinesGenericMenuItems where TList : IList<TElement> where TElement : Object
Draws properties marked with AssetListAttribute. Displays a configurable list of assets, where each item can be enabled or disabled.
Inheritance

Type Parameters

TList

TElement

Constructors

AssetListAttributeDrawer()
public AssetListAttributeDrawer()

Methods

DrawPropertyLayout(GUIContent)
Draws the property.
protected override void DrawPropertyLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

PopulateGenericMenu(InspectorProperty, GenericMenu)
Populates the generic menu for the property.
public void PopulateGenericMenu(InspectorProperty property, GenericMenu genericMenu)
Parameters
InspectorProperty property

UnityEditor.GenericMenu genericMenu

Extension Methods