#@Enenra maybe you should just draw the
1 messages · Page 1 of 1 (latest)
didn't you say that a MonoBehaviour/ScriptableObject would limit me to a drag-drop instead of entering in values?
I mean the class that holds the list of ChanceItems. Make a custom editor for that class
And draw the values however you like
Loop over the list and use GUILayout/EditorGUILayout methods, for example
The drawback is that you lose the nice default list UI, reordering etc.
But you can easily implement reordering with some arrow buttons
If order doesnt matter then its not an issue
I am automatically ordering the list depeding on the % so that should be fine, thanks for the advice
Oh, I misread that, that's the issue.
I am making a utils class and wanna make a ChanceList<T> which would handle the loottable logic on it's own with a simple and intuitive inspector.
I can't really ask the user to make a custom editor just in order to use it because at that point, it's easier to just code the loottable on your own :/