public static GStylizedTerrain CreateTerrain(GTerrainData data) { GameObject g = new GameObject("Styllized Terrain"); g.transform.localPosition = Vector3.zero; g.transform.localRotation = Quaternion.identity; g.transform.localScale = Vector3.one; GStylizedTerrain terrain = g.AddComponent <GStylizedTerrain>(); terrain.GroupId = 0; terrain.TerrainData = data; terrain.Refresh(); CreateTreeCollider(terrain); return(terrain); }