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.

ReferenceRect

Eredita: Control < CanvasItem < Node < Object

Un riferimento rettangolare per progettare le interfacce utente.

Descrizione

Un riquadro rettangolare che mostra solo un bordo colorato attorno al suo rettangolo (vedi Control.get_rect()). È utilizzata per visualizzare le estensioni di un Control, a scopi di test.

Proprietà

Color

border_color

Color(1, 0, 0, 1)

float

border_width

1.0

bool

editor_only

true


Descrizioni delle proprietà

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

  • void set_border_color(value: Color)

  • Color get_border_color()

Imposta il colore dei bordi del ReferenceRect.


float border_width = 1.0 🔗

  • void set_border_width(value: float)

  • float get_border_width()

Imposta la larghezza del bordo del ReferenceRect. Il bordo cresce sia verso l'interno sia verso l'esterno rispetto al rettangolo.


bool editor_only = true 🔗

  • void set_editor_only(value: bool)

  • bool get_editor_only()

Se true, il ReferenceRect sarà visibile solo nell'editor. Altrimenti, il ReferenceRect sarà visibile nel progetto in esecuzione.