Hey, Basically I want to create my own reorderable list with UIElements which I can bind to a SerializedProperty. I want to keep the VisualElement in sync with the SerializedProperty, specifically react to undo/redo. I couldn't find a proper guide/tutorial or just simple documentation but hopefully someone can point me in the right direction. Thanks in advance
Hi, Thanks for reaching out, You can have a look at these 2 forum posts which might give you a starting point: Check for the ArrayInspectorElement in this post: https://forum.unity.com/threads/pro...y-dont-refresh-inspector.747467/#post-4985996 Or a ListView bindings implementation: https://forum.unity.com/threads/uie...izedproperty-of-an-array.719570/#post-4824431 Native reorderable support in ListView should be ready in the 2020.x cycle
Thank you for the response uMathieu! This helps a lot and will make it possible for me to create the reorderable list myself. I just have several more question. Is this the same implementation used for the native PropertyField and when binding other fields to properties? If it is, can I access the default Unity poll frequency? I want to stay as close as I can to your native implentation. If I can't access it, what is your poll frequency? 100? Thanks in advance!