|
Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
You may find very useful ability to extend the inspector with you own source.
Just several cases of use you could face during your development:
All the mentioned case as a lot of other can be solved by extending the inspector with a custom module.
To create a loadable module enough to create a class derived from the Doloro.AI.DAIInspector.AInspectorTab. But to make it right you should follow the next steps.
Assembly definition to make the module distributable.DoloroAICore, DoloroAICoreEditor, DoloroAIInspector, DoloroAIInspectorEditor assemblies to the definition.Editor folder. That folder will locate editor-only assembly.Doloro.AI.DAIInspector.AInspectorTab.Now you got a draft of your future module entry class.
Now you need to adjust the tab integration settings by overriding the following members. That's an optional step.
| Member | Type | Purpose |
|---|---|---|
| Header | GUIContent | Content that will be show at the Inspector within tab's header. Use to define title, tooltip and icon. |
| GUID | string | Unique key related to the tab. Using in internal systems to track its cross-session system data. Must be constant. |
| Order | int | Order in tabs sorting. Lesser - higher in view. |
| ModifiesAISource | bool | If true the inspector will track the changes in GUI and apply them to the source project. Set true in case you are providing access to node's fields \ properties |
After ending with embedding adjustments, you may start with the module features development by implementation of following handlers.
| Member | Type | Purpose |
|---|---|---|
| OnInspectorGUI | void() | Handler that class to draw tab's GUI. |
| OnPostHeader | void() | Handler that class after the tab header has being drawn. Use to add extra UI above. Use GUILayoutUtility.GetLastRect() to get rendered tab header's on-screen rect. |
Features development for Inspector limited only with your imagination and experience as developer. As best example we recommend you to explore following tabs sources: