aframe: setAttribute on text geometry not working

When trying to set setAttribute(‘geometry’,{primitive: “plane”, height: “auto”, width: “auto”}); on <a-entity text> the plane is not being drawn. However if you change the wrap count programaticaly afterwards the plane is showing. The plane will not update it’s width and height if you change the wrap count again.

  • A-Frame Version: 0.6.0 master (8d60730)
  • Platform / Device: PC

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 23 (18 by maintainers)

Commits related to this issue

Most upvoted comments

How would we go about re-autosizing when the text contents have changed? setAttribute("geometry", { width: auto}) is indeed parsed as a NaN. Should geometry be detached and re-attached?