Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

CenterContainer

繼承: Container < Control < CanvasItem < Node < Object

將子控制項保持在其中心的容器。

說明

CenterContainer 是一種容器,它將其所有子控制項以最小尺寸保持在其中心。

教學

屬性

bool

use_top_left

false


屬性說明

bool use_top_left = false 🔗

  • void set_use_top_left(value: bool)

  • bool is_using_top_left()

如果為 true,會將子節點相對於 CenterContainer 的左上角居中。