MaterialResource class
A material: a type (for example physicallyBased, unlit, fmat)
plus typed properties. An fmat material references its .fmat source
via asset.
- Inheritance
-
- Object
- ResourceSpec
- MaterialResource
Constructors
-
MaterialResource(LocalId id, {required String type, Map<
String, PropertyValue> ? properties, AssetRef? asset}) -
Creates a material of the given
type.
Properties
- asset → AssetRef?
-
For
fmatmaterials, the.fmatsource asset; otherwise null.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → LocalId
-
This resource's stable, document-scoped id.
finalinherited
-
properties
→ Map<
String, PropertyValue> -
Typed material parameters (factors, texture refs, alpha mode, ...).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The material kind (
physicallyBased,unlit,fmat, ...).final
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