https://github.com/mitay-walle/componenttitlebargui
Unity3d script that add callback to draw MGUI upon any Component Titlebar
https://github.com/mitay-walle/componenttitlebargui
Last synced: 8 months ago
JSON representation
Unity3d script that add callback to draw MGUI upon any Component Titlebar
- Host: GitHub
- URL: https://github.com/mitay-walle/componenttitlebargui
- Owner: mitay-walle
- License: mit
- Created: 2024-10-24T01:22:55.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T10:44:56.000Z (12 months ago)
- Last Synced: 2024-10-24T16:48:02.167Z (12 months ago)
- Language: C#
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ComponentTitlebarGUI
Unity3d script that add callback to draw MGUI (without CustomEditor) in Inspector upon:
- on any Component Titlebar
- on GameObject Icon
- on Material title preview
# Usage Example
```
[InitializeOnLoadMethod]
public static void Init()
{
ComponentTitlebarGUI.OnTitlebarGUI += TestGUI;
}private static void TestGUI(Rect rect, Object target)
{
if (target is not MonoBehaviour) return;
GUI.Label(rect, EditorGUIUtility.IconContent("console.erroricon.sml"));
}
```