This bit is incorrect. This is similar to A-Frame but it won’t work in Studio since the elements are not HTML. You instead need to store a reference to the entity in the component schema and then access it with schemaAttribute.
This YouTube video I recorded will shed some light on to do this as well:
Unfortunatly, it’s still not working. I don’t know what to do anymore. Would you like to check the full code and maybe some screenshots to see if the problem lays in the scene? I’m trying to solve this for days now. I start to become desparate. It’s just a buttonclick. It should be so easy right?
thank you, I just shared it. It’s called Bedrijfshelden AR Challenge. The idea is that participants scan the QR code to get to the game. They first get an overlay page explaining the game and than press start. This is not working…
After that they should be able to find target images in the building and answer questions that will pop up after tracking. I never got to that point yet, but I guess if I know what I’m doing wrong with the start button, the rest will be a lot easier!
I’ve reviewed the code and it looks like some fundamentals are missing. The state machine definitions aren’t quite correct and there’s a number of syntax errors. As a really small example I created this simple component that changes a UI element image to give you an idea how to add listeners in a StateMachine.