KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2021-03-02 to 1 day

インスペクターにボタンを作る

how to make a button on inspector https://kan-kikuchi.hatenablog.com/entry/CustomEditor_Button ExampleScript.cs using UnityEngine; [ExecuteInEditMode] //エディター再生してない時、動くように? 場合によって使う public class ExampleScript : M…

text color on Gizmo - テキストの色

#if UNITY_EDITOR GUIStyle style = new GUIStyle(); void OnDrawGizmos() { Gizmos.color = new Color(1, 0, 0, 0.5f); Gizmos.DrawCube(transform.position,Vector3.one*0.1f); style.normal.textColor = Color.red; // 通常時の色 UnityEditor.Handles.La…

"FOOTER"