I have a gameObject that has the DontDestroyOnLoad atribute. THis game object creates with AddCOmponent a MeshFIlter to it. Well, when I load a level MeshFilter mesh is “lost”. The solution is to make the MeshFilter.mesh to DontDestroyOnLoad too after adding the component. Could anyone bring some light here about this behaviour? Is it intented? Should’t the mesh still be alive after LevelLoad?
I’m experiencing the same issue. Is this the intended behavior? Because it seems rather counter-intuitive. It seems to me if the host GameObject is set not to destroy, then none of its components should be destroyed either.
Dynamic content loaded at runtime thats meant to survive must be flagged explicitely with DontDestroyOnLoad. So you would want to try to call the dontdestroyonload for your object.
I think for Resources.Load and Textures this is even documented somewhere or at least had a pretty indepth talk last spring / summer here on the board.