garettbass / UnityExtensions.ArrayDrawer

ArrayDrawer is a base class like PropertyDrawer, but for arrays and lists.
MIT License
131 stars 21 forks source link

[Question] Could you provide methods to help drawing #15

Open gydisme opened 4 years ago

gydisme commented 4 years ago

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)

garettbass commented 4 years ago

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

gydisme commented 4 years ago

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