Skip to content

@tripo3d/engine / Plugin

Interface: Plugin ​

Defined in: core/plugin.ts:14

Engine 构造期静态安装的扩展定义。

Plugin 不形成独立的运行期管理对象,也不能在 Engine 创建后动态替换。

Properties ​

PropertyModifierTypeDescriptionDefined in
dispose?readonly(context) => voidEngine teardown时按逆安装顺序调用;错误进入Engine flat cleanup,但不会阻断siblings。core/plugin.ts:16
namereadonlystring仅用于诊断的名称,不参与 identity 判断。core/plugin.ts:18
setup?readonly(context) => voidEngine构造期严格同步调用的可选安装入口。 setup中及其嵌套Definition setup中禁止start、stop和dispose;返回thenable或抛错会使构造失败并清理。core/plugin.ts:24

基于 MIT 协议发布(内部使用)