コード例 #1
0
 void OnGUI()
 {
     EditorGUILayout.LabelField("Name of TileObject:", EditorStyles.wordWrappedLabel);
     _fileName = EditorGUILayout.TextField(_fileName);
     GUILayout.Space(70);
     if (GUILayout.Button("Create"))
     {
         ContextHelper.CreateTileObjectScript(folderPath + "/" + _fileName + ".cs");
         this.Close();
     }
 }