Up to date
This page is up to date for Godot 4.3.
If you still find outdated information, please open an issue.
CenterContainer
继承: Container < Control < CanvasItem < Node < Object
将子控件保持在其中心的容器。
描述
CenterContainer 是一种容器,它将其所有子控件以最小尺寸保持在其中心。
教程
属性
|
属性说明
如果为 true,会将子节点相对于 CenterContainer 的左上角居中。