Skip to content

Customize the VRTK_RadialMenu button Order #1404

@Christian996

Description

@Christian996

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions