reckfellENGINE

ColorRect

Solid-color UI area with alpha.

On this page
class ColorRectReckfellSharpInherits Control

Fills its local Size rectangle with Color, default white. Useful for UI backgrounds/dimming. Set size through anchors/Container or Size; color does not create minimum size or lay out children.

Alpha = 0 changes drawing rather than Visible or MouseFilter. Explicitly configure MouseFilter when an overlay must pass input. This is a 2D Control rather than a 3D material or global color grading.

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

Constructors1

ColorRectConstructor
# ColorRect
C#
public ColorRect();

Creates a white ColorRect. Size/anchors and input filter are independent of Color.

Properties1

ColorProperty
# Color
C#
public Color Color { get; set; }

Solid rectangle color/alpha, default opaque white. Setter requests redraw; does not change Visible, MouseFilter or size.

Methods2

GetColorColor
# GetColor
C#
public Color GetColor();

Solid rectangle color/alpha, default opaque white. Setter requests redraw; does not change Visible, MouseFilter or size.

Returns Color

Fill color/alpha.

SetColorvoid
# SetColor
C#
public void SetColor(Color color);

Solid rectangle color/alpha, default opaque white. Setter requests redraw; does not change Visible, MouseFilter or size.

Parameters
NameTypeDefault
colorColor—
color

Solid rectangle color/alpha, default opaque white. Setter requests redraw; does not change Visible, MouseFilter or size.

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.