reckfellENGINE

ColorPalette

A resource class for managing a palette of colors, which can be loaded and saved using ColorPicker.

On this page
class ColorPaletteReckfellSharpInherits Resource

A resource class for managing a palette of colors, which can be loaded and saved using ColorPicker.

The ColorPalette resource is designed to store and manage a collection of colors. This resource is useful in scenarios where a predefined set of colors is required, such as for creating themes, designing user interfaces, or managing game assets. The built-in ColorPicker control can also make use of ColorPalette without additional code.

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

Constructors1

ColorPaletteConstructor
# ColorPalette
C#
public ColorPalette();

Properties1

ColorsProperty
# Colors
C#
public Color[] Colors { get; set; }

A Color[] containing the colors in the palette.

Methods3

GetColorsColor[]
# GetColors
C#
public Color[] GetColors();
Returns Color[]
SetColors2 overloads
# SetColors · 1/2
C#
public void SetColors(Color[] colors);
Parameters
NameTypeDefault
colorsColor[]—
# SetColors · 2/2
C#
public void SetColors(ReadOnlySpan<Color> colors);
Parameters
NameTypeDefault
colorsReadOnlySpan<Color>—
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.