Spawning actors
import { Service, GameInstance, inject, World } from "@hology/core/gameplay"
import ExampleActor from "./actors/example-actor"
@Service()
class Game extends GameInstance {
private world = inject(World)
async onStart() {
const actor = await this.world.spawnActor(ExampleActor)
}
}Last updated