#any way to do this using a unity editor script?

1 messages · Page 1 of 1 (latest)

opal light
restive hare
#

This already looks like an editor script to me.

Anyhow, if you want elements to appear in-between the fields inserted by Unity, you will have to make the entire editor on your own.
Or you try using a property drawer.

opal light
#

cause what i have is a normal editor script

restive hare
#

To add elements before or after everything the default inspector displays, you can just call base.OnInspectorGUI(); after or before your own stuff.
If you want to insert controls between the elements of the default inspector, you won't be able to do that and you'll have to draw every property yourself.

opal light
#

is there a good way to do that second option?