ArchmageTools
Namespace: Shadop.Archmage.Sdk.Editor
Static editor utility class.
public static partial class ArchmageToolsInheritance Object → ArchmageTools
Methods
Section titled “Methods”DrawEasyDropdown<TValue>(Rect, SerializedProperty, GUIContent, String, TValue[], String[], Vector2)
Section titled “DrawEasyDropdown<TValue>(Rect, SerializedProperty, GUIContent, String, TValue[], String[], Vector2)”Renders a strongly-typed AdvancedDropdown in the Unity Inspector for config ID selection with automatic serialization. Supported TValue types: sbyte, byte, short, ushort, int, uint, long, ulong, string.
public static void DrawEasyDropdown<TValue>( Rect position, SerializedProperty property, GUIContent label, string header, TValue[] values, string[] displayNames = null, Vector2 minWindowSize = default)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 the dropdown window. Defaults to (180, 260).