LayerPreset class

A named draw-order layer the designer offers.

Layers are an editor concept in every 2D game — something has to be behind something else — so the editor ships three sensible ones. A project that wants different names or a different depth ordering registers its own.

Constructors

LayerPreset({required String id, required int order, String? label, String? description})
const

Properties

description → String?
Tooltip.
final
displayLabel → String
Name shown in the layers panel.
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String
The layer's id, as an entity's LayerComponent.layerId names it.
final
label → String?
Display name; defaults to id.
final
order → int
Draw order. Lower draws first (further back).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited