ExtendRealityLtd / ExtendRealityLtd/VRTK

Customize the VRTK_RadialMenu button Order

Open
#1,404 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
3.7k
Forks
974
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.