Skip to content

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

Description

@dzg

The "text-geometry" component has a line:

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

which generates this warning from aframe:

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

What should I replace this with? I don't think  setObject3D() nor object3dset works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions