Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize the VRTK_RadialMenu button Order #1404

Open
Christian996 opened this issue Aug 8, 2017 · 0 comments
Open

Customize the VRTK_RadialMenu button Order #1404

Christian996 opened this issue Aug 8, 2017 · 0 comments
Projects

Comments

@Christian996
Copy link

Hello thestonefox,
is there a easier way to order the buttons at the VRTK_RradialMenu into a new place? Want to have three Buttons. Two at left and right and a third in the middle.

In my own script, i calculate the Position and enable / disable the buttons dependent on touchPosition on touchpad.
In the VRTK_RadialMenu class I calculate the Position in a function too and set a bool if middleIsTouched true or false. To bool is given as parameter to InteractButton-function in youre VRTK_RadialMenuController class. There I check if the parent of parent of parent is activ in hierachy and if the name is equals my toolName. If true, i change the calculation of buttonAngle into 360/2 or to 360/1 if middleIsTouched. If an other tool is active, the calculation is normal 360/button.count.

I customized the functions which invoke the interactButtons function as well.

Do you think this will work?

Maybe you have a better solution for this :)
Greetings Chris.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
VRTK
  
To do
Development

No branches or pull requests

2 participants