PrefabEntity class final
One entity of a PrefabFile.
Constructors
-
PrefabEntity({required String id, required String name, String? parent, bool enabled = true, List<
Map< components = const [], PrefabInstance? prefab})String, dynamic> > - PrefabEntity.fromJson(Map json)
-
factory
Properties
-
components
→ List<
Map< String, dynamic> > -
Its components, as a scene saves them (
{type, fields}); none when it is an instance of another prefab — that prefab's top entity's.final - enabled → bool
-
Whether it is switched on.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Its id: fixed for as long as the prefab lives, unique in it.
final
- name → String
-
Its name, as its entity is named.
final
- parent → String?
-
The id of the entity it is under; null at the top.
final
- prefab → PrefabInstance?
-
When it is an instance of another prefab: which, and what is changed.
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
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
-
withComponents(
List< Map< components) → PrefabEntityString, dynamic> >
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited