IMGUIContainer
Element that draws IMGUI content. For more information, refer to UXML element IMGUIContainer.
Read time 6 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: VisualElement
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IDisposable
public class IMGUIContainer : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IDisposable
Static Fields
Value | Description |
|---|---|
| ussClassName | USS class name of elements of this type. |
Constructors
Constructor | Description |
|---|---|
| IMGUIContainer() | Constructor. |
| IMGUIContainer(System.Action) | Constructor. |
Properties
Property | Description |
|---|---|
| contextType | ContextType of this IMGUIContainer. Currently only supports ContextType.Editor. |
| cullingEnabled | When this property is set to true, IMGUIContainer.onGUIHandler is not called when the Element is outside the viewport. |
| onGUIHandler | The function that's called to render and handle IMGUI events. |
Methods
Method | Description |
|---|---|
| Dispose | Releases the native memory that this IMGUIContainer instance uses. |
| MarkDirtyLayout | Marks layout as dirty to trigger a redraw. |