ReferenceRect

继承: Control < CanvasItem < Node < Object

设计 UI 使用的矩形提示。

描述

仅在对应矩形周围上显示彩色边框的矩形框。用于将 Control 的范围可视化。

属性

Color

border_color

Color(1, 0, 0, 1)

float

border_width

1.0

bool

editor_only

true


属性说明

Color border_color = Color(1, 0, 0, 1)

  • void set_border_color ( Color value )

  • Color get_border_color ( )

设置该 ReferenceRect 的边框颜色。


float border_width = 1.0

  • void set_border_width ( float value )

  • float get_border_width ( )

设置该 ReferenceRect 的边框宽度。边界相对于矩形框同时向内向外伸长。


bool editor_only = true

  • void set_editor_only ( bool value )

  • bool get_editor_only ( )

如果为 true,则 ReferenceRect 仅在编辑器中可见。否则,ReferenceRect 将在正在运行的项目中可见。

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.