- Home /
Show multiple attached scripts variables in one script in the inspector
Hey, I'm Creating a SpellCreator script and I want to make it easily manipulative in the inspector. As I'm going to create multiple effects and ways to cast the spell I'm stripping it to multiple scripts, however i want to have access to all the scripts in one script and change the public variables from the attached scripts or (scriptableobjects which I'll probably use for this) in the Parent script. Is this even possible and if you have any other idea on how to make a spellsystem easier then please leave a comment
Here's a picture for visualization
I found a solution on this if you type in [System.Serializable] on the scripts with the variables you want to access in you list or array it would be accessible. Hope someone finds this useful as it took a whole lot of time for me to figure it out
Your answer
Follow this Question
Related Questions
Scriptable Object only useable from code, not via inspector 1 Answer
Inspector Drop Down for Variables 0 Answers
Make variable visible in inspector 2 Answers
Is there a way to drag a Subclass onto a Field of the Super Type? 1 Answer
Difference between assigning a value in inspector and with a custom editor script 1 Answer