Hey folks, new to unity here and I’m having some trouble getting a mesh to render in my scene.
I’m trying to replicate the 2D platformer example using C# scripting, and have imported the ‘platform’ meshes in to my project.
After setting up a game object and prefab for the mesh, I drag instances in to the scene but don’t have anything rendering except for the box collider component of the platform’s GameObject instance.
Here’s a screenshot of the GameObject prefab I set up (as you can see it renders perfectly well in the preview):
And here’s the in-editor rendering result:
I’ve got the layer for the prefab instance set to ‘default’, and the ‘default’ layer checked in the layers drop down box at the top right hand side of the editor. I’ve also made sure that the scene isn’t trying to render everything in wireframe, it’s currently set to ‘textured’.
I’m obviously missing something simple here, so if anyone could point out what that is it’d be much appreciated!