Skip to content

captureEntity

captureEntity(entity, __namedParameters): string | undefined

Defined in: packages/engine/src/views/entity/screenshot.ts:49

A PNG data URL of the scene framed on the entity, or undefined where it has no object to frame. One render from a copy of the camera; the next frame draws the player’s view again.

Parameter Type
entity Entity
__namedParameters CaptureOptions

string | undefined