Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IMGUIContainer

Element that draws IMGUI content. For more information, refer to UXML element IMGUIContainer.
Read time 6 minutesLast updated 2 days ago

Definition

public class IMGUIContainer : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, 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