I am writing a custom editor for a feature in the game. During the course of using this editor, it creates several temporary gameObjects to help with visualization in the Scene viewport.
Questions:
1. Can I somehow hide these temporary objects from appearing in the Hierarchy tab? I want to see them only in the Scene viewport.
2. If the user saves the project/scene from Unity menu, all the temporary objects are also saved. How do I prevent this?
↧