Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

error CS0136: A local variable named `ter' cannot be declared in this scope because it would give a

Ravi KumarRavi Kumar Member Posts: 1

case 2:
Terrain ter = (Terrain) terrain.GetComponent(typeof(Terrain));
if (ter == null) {
return;
}
TerrainData ter = ter.terrainData;
terrain.splatPrototypes = terData.splatPrototypes;
EditorGUILayout.Separator();
float mouseX;
EditorGUILayout.BeginHorizontal();
GUI.skin = terrain.guiSkin;
GUILayout.Label("Texture Slope");

Sign In or Register to comment.