- Home /
scriptable objects data control question,ScriptableObjectsManager
Hello everyone, I have a question if I can make a manager from which the designers of my game can access the values of the scriptable objects and change them without having to look for them individually in the project file folders. Right now I am quite lost on how to do this, I would appreciate if someone could guide me a little on how to do it in case this is possible to do.,Hello everyone, I have a doubt if I can make a manager from which the designers of my game can access the values of the scriptable objects and change them without having to look for them individually in the project file folders. Right now I am quite lost on how to do this, I would appreciate if someone could guide me a little on how to do it in case this is possible to do.
Answer by EDevJogos · Oct 25, 2021 at 09:24 PM
Short answer: Yes it's possible, make a custom editor for it.
Some thoughts about it: Can't tell you if it's the best approach, but what i would do is use Unity UI Toolkit to make a custom editor window where you can select the different scriptableObjects from a list and then make changes to their values, you can even create sliders and floatfields and show them according to the scriptableObjects variables, you would need to use reflection to get the types, or have some generic way for it, this way you wouldn't even need to acess the scriptableOject itself. Anyway i'm certain that when you look at the UI Toolkit options avaliable you'll get some of your own ideas on how to approach this.
Check out this tutorial: https://www.youtube.com/watch?v=mTjYA3gC1hA