2020-07-01から1ヶ月間の記事一覧
概要 コード using UnityEditor; using UnityEngine; using UnityEngine.UIElements; public class ExampleWindow : EditorWindow { [MenuItem("Window/ExampleWindow")] static void Init() { GetWindow<ExampleWindow>(); } void OnEnable() { var button1 = new Button((</examplewindow>…
概要 EditorWindow.GetWindowの引数desiredDockNextToにtypeofでタイプを指定すると、そのタイプの隣に ウィンドウがくるサンプル。 コード using UnityEditor; using UnityEngine; using UnityEngine.UIElements; public class ExampleWindow : EditorWindo…
概要 Unityでコンソールウィンドウの行をダブルクリックしたときにコードにジャンプしますが それと同じことをUnityのインターナルなメソッドを呼ぶことでできるのでメモ コード static void OpenFileOnSpecificLineAndColumn(string filePath, int line, in…