Skip to content

Resources

const Resources: Trait<{ disposers: () => Disposer[]; }>

Defined in: packages/engine/src/gameplay/entity/traits.ts:79

What the entity holds that outlives a frame: GPU assets, subscriptions. The runtime runs the disposers when the trait leaves, which destroying the entity does.