system
November 30, 2014, 4:57pm
1
How do you clone a terrain’s alphamap? It’s inaccessible according to unity intellisense?
In case anyone reading this doesn’t understand: setalphamaps() changes all clones of the terrain. Not just the terrain you use it on.
The Solution: Clone the alpha map.
The Problem: Can’t access the alpha map’s Texture2D object.
Hence this question being here.
Eric5h5
November 30, 2014, 5:05pm
2
TerrainData.GetAlphamaps
SetAlphamaps will only be applied to the terrain you use it on, as long as the terrain is an instance.
b1gry4n
November 30, 2014, 5:31pm
3
You need to apply a new terrain data to the terrain(s) you want unique. modifying terraindata directly without “cloning” will update all terrain using that terrain data.
TerrainData newTerrainData = (TerrainData) Object.Instantiate(terData);
doing this in combination with erics answer will provide a solution
Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers.