reckfellENGINE

ReferenceRect

Outline guide for UI bounds and placement.

On this page
class ReferenceRectReckfellSharpInherits Control

Draws an unfilled outline: red, width 1 by default. EditorOnly = true draws only in the editor; false allows runtime drawing. This is a draw condition rather than removing an Entity from the build: Visible, children, script and input filter remain.

BorderWidth clamps to zero and does not add padding or minimum size. ReferenceRect is not a layout container, padded frame or clipping mechanism. Set MouseFilter.Ignore separately for a diagnostic overlay that should not receive input.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

ReferenceRectConstructor
# ReferenceRect
C#
public ReferenceRect();

Creates a red width-1 guide with EditorOnly = true. Does not remove the Control from the game.

Properties3

BorderColorProperty
# BorderColor
C#
public Color BorderColor { get; set; }

Outline color/alpha, default opaque red. Does not set a fill.

BorderWidthProperty
# BorderWidth
C#
public float BorderWidth { get; set; }

Outline width in local pixels, default 1. Negative values clamp to 0; padding/minimum size do not increase. Use a finite value.

EditorOnlyProperty
# EditorOnly
C#
public bool EditorOnly { get; set; }

Draw only under editor hint, default true. false allows the runtime outline. Does not change Visible, script processing or inclusion in a build.

Methods6

GetBorderColorColor
# GetBorderColor
C#
public Color GetBorderColor();

Outline color/alpha, default opaque red. Does not set a fill.

Returns Color

Outline color/alpha.

GetBorderWidthfloat
# GetBorderWidth
C#
public float GetBorderWidth();

Outline width in local pixels, default 1. Negative values clamp to 0; padding/minimum size do not increase. Use a finite value.

Returns float

Stored nonnegative outline width.

GetEditorOnlybool
# GetEditorOnly
C#
public bool GetEditorOnly();

Draw only under editor hint, default true. false allows the runtime outline. Does not change Visible, script processing or inclusion in a build.

Returns bool

Editor-only drawing flag.

SetBorderColorvoid
# SetBorderColor
C#
public void SetBorderColor(Color color);

Outline color/alpha, default opaque red. Does not set a fill.

Parameters
NameTypeDefault
colorColor—
color

Outline color/alpha, default opaque red. Does not set a fill.

SetBorderWidthvoid
# SetBorderWidth
C#
public void SetBorderWidth(float width);

Outline width in local pixels, default 1. Negative values clamp to 0; padding/minimum size do not increase. Use a finite value.

Parameters
NameTypeDefault
widthfloat—
width

Outline width in local pixels, default 1. Negative values clamp to 0; padding/minimum size do not increase. Use a finite value.

SetEditorOnlyvoid
# SetEditorOnly
C#
public void SetEditorOnly(bool enabled);

Draw only under editor hint, default true. false allows the runtime outline. Does not change Visible, script processing or inclusion in a build.

Parameters
NameTypeDefault
enabledbool—
enabled

Draw only under editor hint, default true. false allows the runtime outline. Does not change Visible, script processing or inclusion in a build.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.