MaterialOverrides3D class
An entity's own values for the material files it is drawn with — its
shape's (Primitive3D.material) or its model's
(ModelComponent.materials): a glow pulsing, a colour fading, a
texture sliding. By key from MaterialFile.animatableKeys, shaped as
a material file saves them (color an ARGB number, tiling [x, y]).
Change them with set and remove (or give values a new map), so the renderer sees the change; values for a shape drawn with its own look, without a material file, do nothing.
Constructors
-
MaterialOverrides3D({Map<
String, Object> ? values}) -
Overrides holding
values.
Properties
- componentType → Type
-
Type identifier for this component
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- revision → int
-
Goes up with every change.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
↔ Map<
String, Object> -
The values, by key. Read-only: change them with set and remove.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAttach(
EntityId entityId) → void -
Called when this component is added to an entity.
inherited
-
onDetach(
EntityId entityId) → void -
Called when this component is removed from an entity.
inherited
-
remove(
String key) → void -
The material file's own value for
keyagain. -
set(
String key, Object value) → void -
Draws with
valueforkey. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → Object? -
key's value, or null when the material file's own shows.