Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws non-interactive text centered inside a reserved layout area.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public void InnoEditor.ImGui.ImGuiWidget.CenteredText(string text, System.Numerics.Vector2 areaSize)

Parameter text: Visible text.

Parameter areaSize: Size of the layout area that contains the text.

Exception T:System.ArgumentNullException: Thrown when text is null.

Exception T:System.ArgumentOutOfRangeException: Thrown when either component of areaSize is not positive.