D
D
Daniil Bakalin2018-02-06 20:40:32
Game development
Daniil Bakalin, 2018-02-06 20:40:32

unity. How to save settings in the editor when exiting the game?

Good afternoon!
When working with Unity, most objects have many properties (such as position) that can be changed while working with the scene, and during the game. If the parameter is changed during the game, then when it ends, the parameter will be reset to the state in which it was at the time of launch. This is usually very convenient, but for me it became a big problem. When setting up a scene, especially in VR, it is very convenient to move objects and adjust their properties during the game. But at the end of the game, everything is reset. Of course, you can "remember" one component, and then replace the values ​​with new ones, but launching the game for the sake of editing one object is extremely inconvenient.
So I think it should be possible to "freeze" the desired component, or even a bunch of objects at once,
Of course, you can write such a tool yourself, but what's the point of making a bicycle when the task is probably solved a long time ago?.. Maybe the solution is even in the unit itself, but I can't see it? something similar in the market?
I would be grateful for any tips and advice!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daniil Basmanov, 2018-02-06
@Quiensabe

Specifically for VR, there is EditorVR , in which you can walk around the stage without starting the game. For everything else, there are ScriptableObject and prefabs, ScriptableObject changes are saved after exiting the application, and prefabs can be pulled from the stage into the project window even at runtime. There is nothing else like it out of the box, only with plugins.

G
GavriKos, 2018-02-06
@GavriKos

In my apply prefab works even in the game running in the editor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question