You must exit play mode to save the scene unity ошибка

Unity Discussions

Loading

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project?
Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of
Treehouse students and alumni in the community today.

Start your free trial

you must exit play mode to save the scene unity 60cdb8ce4ffe2161409087.png

How do I save a scene in UNITY?
It is necessary to save the scene (level) when exiting the game/transitioning to the main menu (i.e. when switching to another scene).

Looked for information about this on the Internet, found saving through PlayerPrefs or JSON, but as far as I understand, there you can only save individual variables (eg, the amount of health, the volume of the background sound). And I have a scene in the game a large number of objects and do not want to write for each of them their own save.

How can you save the whole scene, so that when you return to this level (scene) everything was the same as when you left (saved lives, ammo, the arrangement of objects (prefabs) on the scene)??

I would be very grateful, as it is necessary to implement the preservation, and no ideas(

you must exit play mode to save the scene unity 60cdb8ce4ffe2161409087.png
How to save a scene in UNITY?
It is necessary to save the scene (level) when exiting the game / switching to the main menu (i.e. when switching to another scene).

I looked for information about this on the Internet, found saving via PlayerPrefs or JSON, but as far as I understand, only individual variables can be saved there (for example, the amount of health, the volume of the background sound). And I have a large number of objects on the stage in the game and I don’t want to write my own save for each of them.

How can you save the entire scene so that when you return to a given level (scene) everything is the same as when you exit (lives, ammunition supply, placement of objects (prefabs) across the scene were saved) ???

I would be very grateful, since it is necessary to implement preservation, but there are no ideas (

Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

1) It’s possible in the editor <Save Scene>/<Save Scene as…> in play mode from script but impossible from UI. Is it by design or we allow user do it from script?

2) Clicking <Save Scene as…> in play mode nothing happens. Should the message «You must exit play mode to save the scene!» appears as it does in case of <Save Scene>?

  • You money ошибка при проведении платежа мы вернем вам деньги
  • You have shared multiple unrelated directories filezilla ошибка
  • You have no access to the server fastcup ошибка
  • You have been kicked due to unexpected client behavior roblox как исправить ошибку
  • You did right decision где ошибка