How to change a button's value when clicked?
e-motiv opened this issue · 0 comments
e-motiv commented
I have a pause/play button as a controller inside gui, but I am not sure if this is the right code for changing its value (pause vs play) when clicked.
I didn't find any function parameters on the function itself or onChange function. So, is this it or is there better?
gui.__controllers[0].__li.querySelector(".property-name").textContent=stop?"▶️":"⏸︎"