Runtime API / Type alias

NodeRef

Any stable node reference accepted by the scene API. Entity handles returned by node-script helpers such as `ctx.role()` expose an `id` but are intentionally not `RuntimeNode` instances. Accepting the small structural contract keeps the documented `ctx.scene.mount(node, { parent: ctx.role('body') })` form type-safe.

使用说明

请参考类型签名和参数定义,或返回 API 总览查看相关接口。