Documentation

Unity Engine

Unity Engine

IMGUIContainer

Element that draws IMGUI content in the editor. For more information, refer to UXML element IMGUIContainer.
Read time 7 minutesLast updated 18 days ago

Definition

[Icon("UIToolkit/Icons/IMGUIContainer.png")]public class IMGUIContainer : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IDisposable

Static Fields

Value

Description

ussClassNameUSS class name of elements of this type.

Constructors

Constructor

Description

IMGUIContainer()Constructor.
IMGUIContainer(System.Action)Constructor.

Properties

Property

Description

contextTypeContextType of this IMGUIContainer. Currently only supports ContextType.Editor.
cullingEnabledWhen this property is set to true, IMGUIContainer.onGUIHandler is not called when the Element is outside the viewport.
onGUIHandlerThe function that's called to render and handle IMGUI events.

Methods

Method

Description

DisposeReleases the native memory that this IMGUIContainer instance uses.
MarkDirtyLayoutMarks layout as dirty to trigger a redraw.

Inheritance

Inherited Members