public void OnInspector(TerrainToolEditor editor) { DesiredHeight = EditorGUILayout.FloatField("Height to flatten to:", DesiredHeight); Size = editor.SizeField("Size:", Size, true); UpsideDown = EditorGUILayout.Toggle("Upside-down:", UpsideDown); VoxelTypeIndex = EditorUtils.VoxelTypeField("Voxel type:", VoxelTypeIndex, editor.Terrain.VoxelTypeSet); }
public virtual void OnInspector(TerrainToolEditor editor) { Dig = EditorGUILayout.ToggleLeft("Dig", Dig); Size = editor.SizeField("Size:", Size, true); VoxelTypeIndex = EditorUtils.VoxelTypeField("Voxel type:", VoxelTypeIndex, editor.Terrain.VoxelTypeSet); }