"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Creating several Virtual Buttons dynamically

Hi,

I'm using Vuforia 4.2.3 on Android, using C++.

I'm trying to create several Virtual Buttons using the 'toggleVirtualButton' method - but I am only able to create one button. All the rest fail with log message "ImageTarget::createVirtualButton(): Failed to create virtual button." 

I made sure the names are not the same, I have tried various rectangle coordinates - but came up with nothing.

 

Any ideas what could the problem be?

 

Thanks,

yakobom

moisestafolla

Mon, 08/31/2015 - 18:16

Have you checked the sample application provided? Look for method toggleVirtualButton(ImageTarget imageTarget, String name, float left, float top, float right, float bottom) in VirtualButtons.java.

moisestafolla

Fri, 09/11/2015 - 23:40

Hi,

Yes, you can use the user defined targets for the virtual buttons. It may be that the place where you are creating the button is not feature rich so it won't trigger, or it can be triggering not so reliably.