Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created February 1, 2019 13:22
Show Gist options
  • Save todorok1/20d2210b1a7c93990f5f4269b3eb6780 to your computer and use it in GitHub Desktop.
Save todorok1/20d2210b1a7c93990f5f4269b3eb6780 to your computer and use it in GitHub Desktop.
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