Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created February 6, 2019 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/ba099c9831fc451e16f554ca3f275d7b to your computer and use it in GitHub Desktop.
Save todorok1/ba099c9831fc451e16f554ca3f275d7b to your computer and use it in GitHub Desktop.
CSVファイルをエクスポートするEditor拡張の準備
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(CsvExporter))]
public class CsvExporterEditor : 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