Saving position of drag n drop objects.
What is the simplest way to save objects that you are dragging and dropping in a scene? Lets say you have 12 bricks in your scene and you move each brick to a different position in the scene....I am not using any keyboard buttons to move the objects...just dragging and dropping them with the mouse. I have 6 different levels like this. I would like to save objects position between scenes, and at best, save the whole thing so players can return to the brick positions that they last moved after quitting the game. . I only need to save positions. Not text, not coins, not anything else....Thanks!
Answer by KjipGamer · Oct 21, 2018 at 01:20 PM
You could save the position of every brick every frame in a vector3, and simply use the DontDestroyOnLoad() mehtod to save the positions.