W3cubDocs

/Godot 4.2

CenterContainer

Inherits: Container < Control < CanvasItem < Node < Object

A container that keeps child controls in its center.

Description

CenterContainer is a container that keeps all of its child controls in its center at their minimum size.

Tutorials

Properties

bool

use_top_left

false

Property Descriptions

bool use_top_left = false

  • void set_use_top_left ( bool value )
  • bool is_using_top_left ( )

If true, centers children relative to the CenterContainer's top left corner.

© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_centercontainer.html