Appearance
Variable: MeshRef
ts
const MeshRef: Trait<() => Object3D<Object3DEventMap> | null>;The Three.js object this entity renders as. Adding it puts the object in the scene; despawning removes it and disposes its geometry and materials unless the entity has SharedMesh (or the object has userData.kilnShared). Systems may read MeshRef to touch materials and uniforms, but positions come from Transform.