Created by iam1337
This is an extension to support Unity UI and TextMeshPro in extDebug.
Be sure to install extDebug before installing.
Old school
Just copy the Assets/extDebug.UGUI folder into your Assets directory within your Unity project, or download latest extDebug.UGUI.unitypackage.
OpenUPM
Via openupm-cli:
openupm add com.iam1337.extdebug.ugui
Or if you don't have it, add the scoped registry to manifest.json with the desired dependency semantic version:
"scopedRegistries": [
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.iam1337.extdebug",
"com.iam1337.extdebug.ugui",
]
}
],
"dependencies": {
"com.iam1337.extdebug": "1.5.0"
"com.iam1337.extdebug.ugui": "1.0.0"
}
Package Manager
Project supports Unity Package Manager. To install the project as a Git package do the following:
- In Unity, open Window > Package Manager.
- Press the + button, choose "Add package from git URL..."
- Enter "https://github.com/iam1337/extDebug.UGUI.git#upm" and press Add.
To change the default IMGUI render on Unity UI, you need to set instance of DMUGUIRender
in DM.Render
.
Full examples you can find in Examples/UGUI.Menu folder.
Unity UI
GameObject MenuObject; // extDebug Unity UI Root instance. The object to hide when the menu is hidden.
Text MenuText; // Unity UI Text instance. The object in which the menu text will be displayed.
// Initialize Unity UI render
DM.Render = new MenuRender(MenuObject, MenuText);
Unity UI and TextMeshPro
GameObject MenuObject; // extDebug Unity UI Root instance. The object to hide when the menu is hidden.
TextMeshProUGUI MenuText; // TextMeshPro UI Text instance. The object in which the menu text will be displayed.
// Initialize Unity UI render
DM.Render = new MenuRender(MenuObject, MenuText);
To change the default IMGUI render on Unity UI, you need to set instance of DMUGUIRender
in DN.Render
.
Full examples you can find in Examples/UGUI.Notifications folder.
Unity UI or TextMeshPro
RectTransform NotifyAnchor; // Ref to the transform of the component on which the notification will be instantiated.
NoticeItem NotifyPrefab; // Notification prefab. Inside this prefab, you can choose between Unity UI and TextMeshPro
// Initialize Unity UI render
DN.Render = new NoticeRender(NotifyAnchor, NotifyPrefab);
> telegram.me/iam1337
> ext@iron-wall.org
This project is under the MIT License.