"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

Trigger more actions per virtual button

Hello everyone,

 

I like to trigger more than one action on a virtual button. Therefore I like to use a static variable to keep a integer value to store wich action to trigger.

Where can I set this variable I tried to use the button handler script but that does not work.

 

Thanks in advise.

DavidBeard

Tue, 07/10/2012 - 15:45

You should be able to simply define a member variable for the event handler class - unless I've misunderstood your question.

 

e.g.

 

int mActionIndex = 0;

 

can you post your code?

I'm sorry I was not clear on that. I need the button to trigger a action every time the button is touched. So the variable is used to store wich action to trigger.