PrefabLoader

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
fun loadFromPath(namespace: String, path: Path, writeTo: Entity? = null): Result<Entity>

Registers an entity with components defined in a path, adding a Prefab component.

Link copied to clipboard
fun reread(entity: Entity)

If this entity has a Prefab component, clears it and loads components from its file.