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) 🔗

該矩形的填充顏色。