Created
February 1, 2019 13:22
-
-
Save todorok1/20d2210b1a7c93990f5f4269b3eb6780 to your computer and use it in GitHub Desktop.
CSVファイルからScriptableObjectにデータをセットするEditor拡張のサンプル(途中)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
[CustomEditor(typeof(CsvImporter))] | |
public class CsvImpoterEditor : Editor { | |
public override void OnInspectorGUI(){ | |
DrawDefaultInspector(); | |
if (GUILayout.Button("敵データの作成")){ | |
Debug.Log("敵データの作成ボタンが押された"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment