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.
Checking the stable version of the documentation...
ReferenceRect
继承: Control < CanvasItem < Node < Object
用于设计 UI 的矩形框。
描述
仅在对应矩形周围上显示彩色边框的矩形框(见 Control.get_rect())。可以用来在测试时显示 Control 的范围。
属性
|
||
|
||
|
属性说明
Color border_color = Color(1, 0, 0, 1) 🔗
设置该 ReferenceRect 的边框颜色。
设置该 ReferenceRect 的边框宽度。边界相对于矩形框同时向内向外伸长。
如果为 true,则 ReferenceRect 仅在编辑器中可见。否则,ReferenceRect 将在正在运行的项目中可见。