Solar-System icon indicating copy to clipboard operation
Solar-System copied to clipboard

Mesh disappears when you press play

Open EliassVenterzutis opened this issue 4 years ago • 2 comments

Hi, when I hit play the mesh for the TerainMesh program just disappears, but in the editing mode(When play hasn't been hit) everything looks great. Most of the time in play mode it doesn't display anything. If anyone has an idea please let me know how to fix this, I have tried a lot of things, but I'm new to game development and not too familiar with coding... especially to c# Screenshot 2022-01-02 224802 Screenshot 2022-01-02 224828 .

EliassVenterzutis avatar Jan 02 '22 20:01 EliassVenterzutis

You use this in a new scene with a new game object. The mesh generating is really involved and complicated, I believe each body has a BodyPlaceholder script and then SolarSystemSpawner manager goes through each object and creates mesh for it. Only then you have a usable mesh in the play mode.

Delofon avatar May 15 '22 19:05 Delofon

For those who use the default Planet scene, see #50

r0levrai avatar Sep 06 '24 10:09 r0levrai