Reorderable list in inspector for custom ability

imjustthatguy

New member
Hi so Im creating my own custom ability and trying to have a reorderable list in the inspector like the audio clips / etc, however when I add the correct attributes to the class and create a list of it it still shows as a default list with no ability to reorder.

My question is how can I make it conform to opsive so that it can be reorderable like the other properties (say for example - audio clips.. or abilities in themselves) in the opsive system? It is a list of scriptable objects with the scriptable object [System.Serializable] attribute attached. I tried subjectnerds method from his git repo and tried to make the list [Reorderable] but that didnt work either. Im not sure what Im missing in order to get it to behave appropriately.

As you can see, The list is not reorderable unlike the abilities / item abilities and / or Audio clips. What am I doing wrong?


Thanks and looking forward to hearing from you.
 

Attachments

  • 1630193798620.png
    1630193798620.png
    66 KB · Views: 3
You will need to create a custom inspector derived from AbilityInspectorDrawer. Take a look at JumpInspectorDrawer for an example.
 
Top