P
P
Pavel Arutyunov2022-01-29 16:40:12
Mobile development
Pavel Arutyunov, 2022-01-29 16:40:12

How to reset object data after scene reload?

Hello!
How to write a script that will reset the characteristics of an object after reloading the scene?
There is an object that during the game changes its properties OH after reloading the scene, it retains its properties (For example, the coordinates of the object X=1 during the game they change to X=5 after reloading the scene, the object retains the coordinate X=5 and you need to reset yes X=1)
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2022-01-29
@GLaWA_RaKoB

https://docs.unity3d.com/ScriptReference/SceneMana...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question