-
-
Save kou-yeung/3d47b5fdfe6a1b0ee293797000ede36e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Path : Editor\CreatedUI.cs | |
using UnityEditor.UI; | |
using UnityEngine.UI; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public static class CreatedUI | |
{ | |
static CreatedUI() | |
{ | |
MenuOptions.OnCreatedButton += OnCreatedButton; | |
} | |
static void OnCreatedButton(Button btn) | |
{ | |
btn.gameObject.AddComponent<ButtonSE>(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment