Skip to main content

Class SerializeReferenceIMGUIList

Namespace: Aspid.FastTools.SerializeReferences.Editors
Assembly: Aspid.FastTools.Editor.dll

Provides utility methods for drawing managed-reference lists with a type picker for new elements in IMGUI.

public static class SerializeReferenceIMGUIList

Inheritance​

object ← SerializeReferenceIMGUIList

Remarks​

The add button creates an independent instance; element fields retain their registered property drawers.

Methods​

Draw(SerializedProperty, GUIContent, Type, params Type[])​

Draws a managed-reference list whose add button selects a type and appends an independent instance.

public static void Draw(SerializedProperty listProperty, GUIContent label, Type elementType, params Type[] baseTypes)

Parameters​

listProperty SerializedProperty

The array or list of managed references; null or a non-array property draws nothing.

label GUIContent

The list header; null displays no label.

elementType Type

The declared element type constraining the picker, supplied even when the list is empty.

baseTypes Type[]

Additional constraints below elementType; null or an empty array adds none.