- Home /
Creating a new Editor Window | How (where) do I save field values?
Hi everyone,
I want to create a new Editor Window which shows some text input fields. I want to save the input of the fields somehow in the current Unity Project. I may also extend this to non trivial values like strings but also (JS or C#) objects.
Where could I store this? Is there a magical 'project-instance-object' or something like that?
Any thoughts are really appreciated, thanks a lot.
Answer by Ejlersen · Nov 09, 2013 at 11:22 PM
Check out EditorPrefs. It might contain what you need, else you might need to write your own data format.
Thanks. But as far as I can see, this is used for storing and accessing player preferences between game sessions.
I think I will go with an GameObject attached with a Class with public Fields. This GameObject can than be stored within the object.
Would this be a "good" solution?
Oh sorry, its EditorPrefs (modified my answer). And yes, you could do that.
Your answer
Follow this Question
Related Questions
EditorWindow Menu 1 Answer
How exactly does Unity find editor extensions? 1 Answer
Save/load playerprefs 2 Answers
Saving variables? 3 Answers