Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

What's the best way to keep a GameObject from getting saved?

$
0
0
I have a ton of *child* GameObjects that I generate both in the editor and at runtime. I don't want to save them in the Unity scene file, because I'm using git so they will create tons of data/noise that I don't need at this stage of the project.

I tried using HideFlags.DontSave, but that causes all kinds of issues, because they become undestroyable unless I track them manually... and also it causes CheckConsistency errors, because the parent transform seems to still think it has children,...

What's the best way to keep a GameObject from getting saved?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>