ArchmageTools
Namespace: Shadop.Archmage.Sdk.Editor
public static class ArchmageToolsInheritance Object → ArchmageTools
Methods
Section titled “Methods”DrawEasyDropdown(Rect, SerializedProperty, GUIContent, String, TValue[], String[], Vector2)
Section titled “DrawEasyDropdown(Rect, SerializedProperty, GUIContent, String, TValue[], String[], Vector2)”Draws a strongly-typed AdvancedDropdown for configurations with automatic serialization.
public static void DrawEasyDropdown<TValue>(Rect position, SerializedProperty property, GUIContent label, string header, TValue[] values, String[] displayNames, Vector2 minWindowSize)Type Parameters
Section titled “Type Parameters”TValue
The underlying data type of the ID (supports: sbyte, byte, short, ushort, int, uint, long, ulong, string).
Parameters
Section titled “Parameters”position Rect
Rectangle on the screen to use for the property GUI.
property SerializedProperty
SerializedProperty of the field to modify.
label GUIContent
The label of the property.
header String
The header text displayed at the top of the dropdown window.
values TValue[]
The array of configuration ID values.
displayNames String[]
Optional: custom display strings. Length must match values if provided.
minWindowSize Vector2
Optional: minimum size for dropdown window. Defaults to (180, 260).