- Home /
Add elements to array/list in inspector?
Hey there, how can i make an array or a list with the information about the different levels in my game without creating a gameobject for every level an drag it inside the inspector array?
I want to add new levels in the inspector and paste the informations there but i don't want to create a complete new game object only for one level. Everything should get filled in in the inspector array.
Hope you know what i mean.
Greets!
Comment
Best Answer
Answer by Chubzdoomer · Feb 23, 2017 at 03:38 PM
It sounds like you're looking for scriptable objects. :-)
https://docs.unity3d.com/ScriptReference/ScriptableObject.html https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/scriptable-objects