How to set/change variables from an Editor Window on a Prefab
Hey Guys, I want create an Editor Window on which I have some fields which I can fill in. If a Submit Button is pressed a new GameObject gets created some Script get attached and now I want to set the filled in settings on the script how would I do that ? So that after this is set I save it as a Prefab in the Ressource Folder and can use it later on.
I just need some examples in c# for a bool or string since this should be the same for all kind of types.
Would be cool if someone could share a little code segmant which showcase how to do this.
Kind Regards, StonedLover
Your answer
Follow this Question
Related Questions
Can someone help me ? 2 Answers
How would I implement obstacle avoidance in this script? I am clueless. 1 Answer
C# - How can i solve this door problem in script? Can someone help me? 1 Answer
[UNET] The thing you tried to instantiate is null(spawning objects over a network) 0 Answers
Making achtung die kurve 0 Answers