Table of Contents

Class ReferenceRect

Namespace
Godot
Assembly
GodotSharp.dll

A rectangle box that displays only a colored border around its rectangle. It is used to visualize the extents of a Control.

public class ReferenceRect : Control, IDisposable
Inheritance
ReferenceRect
Implements
Inherited Members

Constructors

ReferenceRect()

public ReferenceRect()

Properties

BorderColor

Sets the border color of the ReferenceRect.

public Color BorderColor { get; set; }

Property Value

Color

BorderWidth

Sets the border width of the ReferenceRect. The border grows both inwards and outwards with respect to the rectangle box.

public float BorderWidth { get; set; }

Property Value

float

EditorOnly

If true, the ReferenceRect will only be visible while in editor. Otherwise, ReferenceRect will be visible in the running project.

public bool EditorOnly { get; set; }

Property Value

bool

Methods

HasGodotClassMethod(in godot_string_name)

Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.

protected override bool HasGodotClassMethod(in godot_string_name method)

Parameters

method godot_string_name

Name of the method to check for.

Returns

bool

HasGodotClassSignal(in godot_string_name)

Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.

protected override bool HasGodotClassSignal(in godot_string_name signal)

Parameters

signal godot_string_name

Name of the signal to check for.

Returns

bool

InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)

Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.

protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)

Parameters

method godot_string_name

Name of the method to invoke.

args NativeVariantPtrArgs

Arguments to use with the invoked method.

ret godot_variant

Value returned by the invoked method.

Returns

bool