Hi,
I am trying to change the textcontent of the AR Button that gets spawned when I am running this code:
const arButton = arButtonContainer.appendChild(
ARButton.createButton(
renderer,
{
optionalFeatures: ['dom-overlay', 'dom-overlay-for-handheld-ar'],
domOverlay: { root: document.body },
}
)
) as HTMLButtonElement;
I tried setting the text with this:
arButton.textContent = 'bla';
But it doesn’t work. Also styling the button was kinda weird, since I had to mark everything i did with !important
How can I change the textcontent of that button?
Thanks!