interface InstanceEvents {
    after-camera-update: {
        camera: renderer.View;
    } & FrameEventPayload;
    after-entity-update: EntityEventPayload & FrameEventPayload;
    after-render: FrameEventPayload;
    before-camera-update: {
        camera: renderer.View;
    } & FrameEventPayload;
    before-entity-update: EntityEventPayload & FrameEventPayload;
    before-render: FrameEventPayload;
    entity-added: unknown;
    entity-removed: unknown;
    picking-end: {
        elapsed: number;
        results?: PickResult<unknown>[];
    };
    picking-start: unknown;
    update-end: FrameEventPayload;
    update-start: FrameEventPayload;
}

Properties

after-camera-update: {
    camera: renderer.View;
} & FrameEventPayload

Fires after the camera update

after-entity-update: EntityEventPayload & FrameEventPayload

Fires after the entity update

after-render: FrameEventPayload

Fires after the render

before-camera-update: {
    camera: renderer.View;
} & FrameEventPayload

Fires before the camera update

before-entity-update: EntityEventPayload & FrameEventPayload

Fires before the entity update

before-render: FrameEventPayload

Fires before the render

entity-added: unknown

Fires when an entity is added to the instance.

entity-removed: unknown

Fires when an entity is removed from the instance.

picking-end: {
    elapsed: number;
    results?: PickResult<unknown>[];
}

Type declaration

  • elapsed: number

    The duration of the picking, in seconds.

  • Optionalresults?: PickResult<unknown>[]

    The picking results.

picking-start: unknown
update-end: FrameEventPayload

Fires at the end of the update

update-start: FrameEventPayload

Fires at the start of the update