UnityExtensions.ArrayDrawer icon indicating copy to clipboard operation
UnityExtensions.ArrayDrawer copied to clipboard

[Question] Could you provide methods to help drawing

Open gydisme opened this issue 5 years ago • 2 comments

First of all, thanks for the awesome plugin!!

As the topic, I want to draw my array in my customEditorWindow, is it possible that provides method for users to call, ex: List myIntList; ArrayDrawer( rect, myIntList );

thanks.

(I use Unity's ReorderableList now)

gydisme avatar Jul 31 '20 08:07 gydisme

You should be able to draw it by calling https://docs.unity3d.com/ScriptReference/EditorGUI.PropertyField.html

garettbass avatar Jul 31 '20 16:07 garettbass

I can’t because it’s a EditorWindow not a CustomEditor, I don’t have the SerializedProperties.

gydisme avatar Jul 31 '20 16:07 gydisme