Hello mates…
I have problem with creating invisible Terrain.
- I have added new terrain to the scene
- I’ve added mesh renderer.
- I used this script:
function Start(){
renderer.enabled = false;
}
- I connected script with Terrain
- I got this error:
MissingComponentException: There is no ‘Renderer’ attached to the “Terrain” game object, but a script is trying to access it.
You probably need to add a Renderer to the game object “Teren”. Or your script needs to check if the component is attached before using it.
I dont know whats going on it should disapper like in other obecjts.