CenterContainer

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

将子控件保持在其中心的容器。

描述

CenterContainer 是一种容器,它将其所有子控件以最小尺寸保持在其中心。

教程

属性

bool

use_top_left

false


属性说明

bool use_top_left = false

  • void set_use_top_left ( bool value )

  • bool is_using_top_left ( )

如果为 true,会将子节点相对于 CenterContainer 的左上角居中。

Previous Next


© 版权所有 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision b1c660f7.

Built with Sphinx using a theme provided by Read the Docs.