Save Changes Made During Runtime | Keep Play Changes | 5 Tips to Prevent Losing Your Data in Unity!

preview_player
Показать описание
Use these tips to save all changes made to GameObjects while using play mode in Unity. These tips will help prevent you from losing data, and offer suggestions for keeping changes made during runtime.

In this video I cover 5 methods of saving play-mode or run-time changes. These suggestions include:

Play Mode Tint - Often times this issue happens on accident. One great way to avoid this issue altogether is to add a tint while in Play Mode. Doing this makes it a lot easier to tell when you're currently in play mode, allowing you to avoid making changes until you are finished.
Component Copy - Sometimes you want to make changes in play mode, and this tip (and the following few tips) come in handy. Component copy doesn't come with any issues, but it only allows you to copy the runtime data for one component from one GameObject.
Full Copy - Copies the full GameObject(s). If multiple components were changed this method is a good choice. One issue with this method is that you may lose references to other components and have to re-enter those.
Prefab Copy - Similar to the Full Copy method. Prefab Copy creates a prefab of the the GameObject. If multiple components were changed this method is a good choice as it creates a prefab for the runtime version of the GameObject. One issue with this method is that you may lose references to other components and have to re-enter those.

Whether it be a single component, or multiple components on multiple GameObjects, these tips will offer suggestions on how you can retain your data.

Intro and Title Card music:

Glitter Blast by Kevin MacLeod

0:00 | Start
0:57 | Play Mode Tint
1:35 | Component Copy
2:12 | Full Copy
3:42 | Prefab Copy
4:28 | Third-Party Tool Download
5:28 | Testing the Tool

Please let me know if you have any suggestions or questions.
Рекомендации по теме
Комментарии
Автор

Hey, thanks so much--I'm trying the prefab variant of this...

AND, IT WORKED PERFECTLY! Thank you so much!

manyblinkinglights