Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CSVファイルからScriptableObjectにデータをセットするEditor拡張のサンプル(途中)
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