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.

ColorRect

继承: Control < CanvasItem < Node < Object

显示单色矩形的控件。

描述

显示一个用纯色 color 填充的矩形。如果你需要单独显示边框,请考虑改用 Panel

教程

属性

Color

color

Color(1, 1, 1, 1)


属性说明

Color color = Color(1, 1, 1, 1) 🔗

该矩形的填充颜色。