Class RuntimePanelSimulator
A PanelSimulator for use with runtime tests.
Inherited Members
Namespace: UnityEngine.UIElements.TestFramework
Assembly: Unity.UI.TestFramework.Runtime.dll
Syntax
public sealed class RuntimePanelSimulator : PanelSimulator
Constructors
RuntimePanelSimulator()
Creates a RuntimePanelSimulator with
a null PanelSettings.
Declaration
public RuntimePanelSimulator()
RuntimePanelSimulator(PanelSettings)
Creates a RuntimePanelSimulator with
the provided panelSettings.
Declaration
public RuntimePanelSimulator(PanelSettings panelSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| PanelSettings | panelSettings | The |
Methods
FrameUpdate(double)
Performs a frame update of the panel.
Declaration
public override void FrameUpdate(double time)
Parameters
| Type | Name | Description |
|---|---|---|
| double | time | The amount of time in seconds to increment the simulated time. |
Overrides
Remarks
This method simulates yielding a frame by the following:
- Updates the scheduler and the panel's visual tree updaters.
- Advances the time by the amount specified in time.
- When needsRendering is true, it triggers rendering for the panel's `ImmediateModeElement` and invokes `IMGUIContainer`'s `OnGUI` with a Repaint Event.