`getOrCreateObject3D` has been deprecated. Use `setObject3D()` and `object3dset` event instead

56 Views Asked by At

I'm working on a project on 8th Wall using A-Frame and Three.js. I'm using a component called "text-geometry" which generates extruded text.

But I keep getting this warning:

`getOrCreateObject3D` has been deprecated. Use `setObject3D()` and `object3dset` event instead. 

The code from the component is:

const mesh = el.getOrCreateObject3D('mesh', THREE.Mesh)

What should I replace this with? Neither setObject3D() nor object3dset works.

0

There are 0 best solutions below