RmlDebugHook
Summary
The class for specifying debug overlays
Remarks
Danger
All calls made within this class MUST be performed on the Master Thread. See Threads.RunLater on how to safely call this from an asynchronous thread. Failure to comply with this can cause catastrophical failures as the engine is not designed for this.
Definition
Namespace: SDT4.Managed.UI.Rml.Debugging
Assembly: SDT4.Managed.UI.dll
static class RmlDebugHook
Inheritance:
Object ➔ RmlDebugHook
Implements:
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public static get; IsActive |
Boolean | Returns if the debug hook is active. |
Methods
public static Void AttachHook(ViewportRenderInstance viewport)
Summary: Attaches this debug overlay hook permanently. This can only be called from a standalone runtime.
Remarks:
Note
When running a scene via the embedded view in the editor, the debug hook is persistently attached, and will always throw InvalidOperationException
Important
The debug hook can only be attached once, once it is attached, it can no longer be attached. Make sure to attach this to a valid viewport render instance that never goes out of scope!
Parameters:
viewport(ViewportRenderInstance): The viewport to attach this render instance to. This must have a window associated with it.