Show / Hide Table of Contents

Box

Draws a rectangle with a size on the screen.

Remarks

When calling the ImGui.Box(...) function, the layout will not be updated. This is useful if you would like to overlay the box with some other content. For example, you may want to add text on top of the box.

If you need the layout to be automatic, please pass in a true as the last parameter of the function. Please see the page about layouts.

Example

// By passing in a true, we force the scope to update.
ImGui.Box(new float2(200), Color.red, true);
ImGui.Box(new float2(200), Color.blue, true);

a red and blue box stacked together

  • Improve this Doc
In This Article
Back to top Generated by DocFX