|
Im Trying to Make a Terrian Paint Brush but i get a error UnityException: Trying to access out-of-bounds terrain height information. public class TerrianBrush : MonoBehaviour { }
(comments are locked)
|
|
Apparently, you are accessing the unavailable memory."Trying to access out-of-bounds terrain height information." I suggest you check GetHeights' param, as far as i know, for example, if your terrain is 10 by 10, and your brush point is just at the right-top corner, "Trying to access out-of-bounds terrain height information." will happen. so check your params first. Good luck yea thanks i did a bit more research and it now works fine
Jun 12 '11 at 02:37 AM
pietothemax
(comments are locked)
|
|
Try This. http://unity3d.com/support/documentation/ScriptReference/TerrainData-heightmapHeight.html :) This might also be helping. http://unity3d.com/support/documentation/ScriptReference/TerrainData.GetHeight.html :)
(comments are locked)
|
