Hey,
I was wondering whether it is possible to create variable by script through the inspector.
So basically what I mean is that I want to create a game object in the inspector. And with that game object i want to automatically create a new variable in my script, which will have the name of my game object. So I don’t have to script the variable myself.
So is it possible to create script content through another script. like loading the an entire script as string, editing that string and then reusing that string as script. This would only have to work in Unity editor, not in-game.
Would be great if you could help me out with that.