Hi,
I would like to write a prefab placement plugin :
How to make a plugin where you can select some prefabs and place them on the scene, but they don’t get saved in the scene, only the plugin save what prefabs we placed and their positions.
At runtime this is the plugin that will spawn the prefabs based on some conditions at their respective saved positions.
What is the best way ? Is there any tutorial ?
Thanks.
HideFlags sounds like one of the things you would need for that.
Then your plugin would (if I understood you correctly) simply keep track of the prefabs and their positions and store that data into a ScriptableObject or something similar.
I thaught about :
- placing prefabs in the scene
- select them and click a button of the plugin to store the prefabs type and their position
- delete the prefabs before saving the scene
But your solution with HideFlags should work in an more elegant way without needing to delete prefabs manually.
Thanks.