I have a bunch of GameObjects in the scene called Node and Path.
Path uses Nodes to dynamically create a mesh and assign it to the MeshFilter component.
I create the mesh during OnValidate of Path.
This way I can see a curve road being rendered on both the scene view and the game view as I edit the scene. I can drag the Node and see the Paths referencing it being updated.
Problem is, I only want to save the Node and the Path, which refers to a list of Node. I do not want to save the Mesh gets generated dynamically into the scene because I want them to be generated during game play.
Is there anyway to do it?
Thanks