Is there a way to convert a gameObject into a terrain object so i can access the terraindata?
The lengthy question :
So I have a script that places terrain tiles as the player moves about the terrain edges. I achieve this by calling Terrain.CreateTerrainGameObject() and positioning them. Is there a way to convert the returned GameObject back into Terrain because I need to do two things with them :
- SetNeighbors, so the LOD would match, and
- Stitch the terrain pieces.
Wow, Thanks Eric! Didn't realize that Terrain could be accessed as a component. For reference, this is what I did : gameObject.GetComponent<Terrain>().terrainData; Thanks again!
– Sahil-RamaniA sensible solution is https://unity3d.com/learn/tutorials/topics/cloud-build/creating-your-first-source-control-repository ...
– tanoshimi