- Home /
Prevent reseting of GameObject physics state on SceneManager.MoveGameObjectToScene(...)
I discovered that moving GameObject to Scene using SceneManager.MoveGameObjectToScene(...) method leads to reseting physics movement state of object that was transferred to scene. Both linear & angular speeds resets to zero value. There is said nothing about such behavouir in SceneManager API documenetion and, as I see, there is no flags or something like this to setup GameObject-to-scene movement details. I'm going to workaround this by saving and setting up movement state after GameObject transfring to scene...
.
But, maybe, some more sutable solition existsts?
Your answer
Follow this Question
Related Questions
Using scene created with SceneManager.CreateScene during runtime 0 Answers
Multiple scenes 2 Answers
Attempting to Create an Essential SceneElements Checker 0 Answers
2D character stop immediately even when input buttons pressed 0 Answers
Unity2d Set Different Physics Properties on Gameobjects (potentially at Runtime) 2 Answers