I am creating basic virtual buttons using Vuforia but my button presses are not being detected.
This is the code. I don’t see any reason this should not work but it doesn’t.
The area has a high concentration of feature points,
The Virtual Button brideVB is a child of the Image target and this script is added to the Image target.
Please check that your virtual buttons dont touch each other. Also the virtual button is not allowed to go over the Image Target, even if it is just a bit. Is your Image Target working correctly ? The button released debug log seems wrong, because this log will show up when the button is pressed, not when it is released. Also the line brideVB.GetComponent<VirtualButtonBehaviour>(); is useless, as you already have the VirtualButtonBehaviour. Please click on the first error messag and show me the detailed text. Are you pressing the button on your Image Target (in real world) ?
The virtual buttons don’t touch and are not anywhere near the bounds, they are all centred. The image Target does work and it shows in the console when it’s recognised and if I place a 3D model that does show up when the image is detected.
As for the log that is just a copy-paste to replace my code to check if the function is even getting called, which it’s not.
I did find the issue but forgot to add them here.
In my case, they were not working as I had added the image directly from my system. Virtual buttons require you to upload the image to their website and download it as a database.