Version 3.3.1.2

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, IDisposable 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

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

Initialize()
protected override void Initialize()
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