public override void OnGUI()
 {
     gregbob.EditorUtility.CreateSectionLabel("Place object on top of tile");
     objToPlace       = (GameObject)EditorGUILayout.ObjectField("Object to place", objToPlace, typeof(GameObject), true);
     visitableOnPlace = EditorGUILayout.Toggle("Tile visitable after placing object?", visitableOnPlace);
     prefabSelection.CreateResizableBox(allPrefabs);
 }
示例#2
0
 public override void OnGUI()
 {
     gregbob.EditorUtility.CreateSectionLabel("Add material to tile");
     EditorGUILayout.ObjectField("Texture to paint", paintMaterial, typeof(Material), true);
     materialSelection.CreateResizableBox(allMaterials);
 }