Procedurally generated mesh not visible
I am going through Sebastial Lagues's tutorials about procedural cave generation.
I've added the empty game object, I generated the boxes through code just as he described it, but they are only visible in scene.
The camera IS positioned correctly. I tried adding a simple box, and it was visible.
Did you add a $$anonymous$$eshRenderer component to the object?
I copied both scripts from here https://github.com/SebLague/Procedural-Cave-Generation/tree/master/Episode%2003
The damn this still isn't working. OnDrawGizmos isn't being used anymore and this time the mesh can't be seen in the scene.
I tried with these two scripts and i see a square area.
Steps:
- create empty gameobject
- add $$anonymous$$eshRenderer component
- add $$anonymous$$eshFilter component
- add both scripts
- set public variables "width" and "height" to 5 in inspector
Your answer
