What I meant is that once the game is ended that I can extract the position of some objects that I have set in game… In your code example, would ‘tempPos’ still have the in-game location once Unity goes from gameplay mode to editing mode?
However, as this is probably a common need, are you aware of a script or add-on that can preserve a bunch of variables / objects between the boundaries of game-mode / edit-mode?
I believe there is a system or two for that at the Unity Asset Store.
The systems in the Asset store are designed to place one script on each Obj.
I think I may have a script I wrote a while back that is a solution for an array of objects, and it saves the position and rotation of 25 or 50 Objects. I cant remember lol. If you want something like the solution I wrote just say so and ill try to find it.
I’ve been scouring the asset store and so far the “Unity Serializer” looks like it could be useful for my game, but I have yet to find out if it will carry out the above requirement.