DriftScript bindings · function

engineTarget

A target providing everything this engine has wired.

Explained in Setting up scripts.

function engineTarget(name?: string): TargetManifest
import { engineTarget } from '@driftengine/script';

Parameters

ParameterTypeDescription
name?string

In depth

A consumer that wants less passes its own list. A consumer that wants more cannot — the manifest may only name modules something provides, so a target claiming drift/ecs is refused at the manifest rather than at every call site.