@tripo3d/engine / Plugin
Interface: Plugin
Defined in: core/plugin.ts:14
Engine 构造期静态安装的扩展定义。
Plugin 不形成独立的运行期管理对象,也不能在 Engine 创建后动态替换。
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
dispose? | readonly | (context) => void | Engine teardown时按逆安装顺序调用;错误进入Engine flat cleanup,但不会阻断siblings。 | core/plugin.ts:16 |
name | readonly | string | 仅用于诊断的名称,不参与 identity 判断。 | core/plugin.ts:18 |
setup? | readonly | (context) => void | Engine构造期严格同步调用的可选安装入口。 setup中及其嵌套Definition setup中禁止start、stop和dispose;返回thenable或抛错会使构造失败并清理。 | core/plugin.ts:24 |