Creating actor classes
Creating a new actor class
// src/actors/example-actor.ts
import { Actor, BaseActor } from "@hology/core/gameplay";
@Actor()
class ExampleActor extends BaseActor {
onInit() {
}
onBeginPlay() {
}
onEndPlay() {
}
onUpdate(deltaTime: number) {
}
}
export default ExampleActor
Making actors available in the Hology Editor
Creating an actor class from the editor
Hot reloading
Last updated
