When a certain button is clicked I am able to disable an entity but I do not know how to specify how long it should be disabled for.
Editor - https://playcanvas.com/editor/scene/896589
Code Editor - https://playcanvas.com/editor/code/674640?tabs=29638492,29641962
The code is under the AMajor.js and the button that has to disappear is ‘ELow’.
To test it launch the guitar scene and click on the Major Chord Button. Under that you will see “A”. Once that is pressed the top right button “E” should be disabled until the sound finishes playing and then “E” should be enabled again.
Thank you