How can I hide an element with A-Frame?

后端 未结 3 525
清酒与你
清酒与你 2021-02-14 21:08

What is the best way to hide an element using A-Frame?

Do I need to remove the element from the DOM?

3条回答
  •  感动是毒
    2021-02-14 21:54

    var el = document.querySelector("#yourElementId");
    
    el.setAttribute("visible",false);
    

提交回复
热议问题