Skip to content

Instantly share code, notes, and snippets.

@baba-s
Created March 23, 2024 00:30
Show Gist options
  • Save baba-s/230c0c4ff164dae465f84eb0326d5e3f to your computer and use it in GitHub Desktop.
Save baba-s/230c0c4ff164dae465f84eb0326d5e3f to your computer and use it in GitHub Desktop.
using UnityEditor;
using UnityEngine;
public sealed class Example : EditorWindow
{
[MenuItem( "Tools/Hoge" )]
private static void Open()
{
GetWindow<Example>();
}
private void Awake() => Debug.Log( "Awake" );
private void Reset() => Debug.Log( "Reset" );
private void Update() => Debug.Log( "Update" );
private void OnEnable() => Debug.Log( "OnEnable" );
private void OnDisable() => Debug.Log( "OnDisable" );
private void OnDestroy() => Debug.Log( "OnDestroy" );
private void ModifierKeysChanged() => Debug.Log( "ModifierKeysChanged" );
private void OnAddedAsTab() => Debug.Log( "OnAddedAsTab" );
private void OnBecameInvisible() => Debug.Log( "OnBecameInvisible" );
private void OnBecameVisible() => Debug.Log( "OnBecameVisible" );
private void OnDidOpenScene() => Debug.Log( "OnDidOpenScene" );
private void OnFocus() => Debug.Log( "OnFocus" );
private void OnHierarchyChange() => Debug.Log( "OnHierarchyChange" );
private void OnInspectorUpdate() => Debug.Log( "OnInspectorUpdate" );
private void OnLostFocus() => Debug.Log( "OnLostFocus" );
private void OnMainWindowMove() => Debug.Log( "OnMainWindowMove" );
private void OnProjectChange() => Debug.Log( "OnProjectChange" );
private void OnSelectionChange() => Debug.Log( "OnSelectionChange" );
private void OnTabDetached() => Debug.Log( "OnTabDetached" );
private void OnValidate() => Debug.Log( "OnValidate" );
private void ShowButton( Rect rect ) => Debug.Log( "ShowButton" );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment