In PinchSlider script, Slider Axis property can be set to X, Y or Z axis.
While this setting do modify the way you can move ThumbRoot, it doesn't change TrackVisuals and TickMarks orientation.
Steps to reproduce the behavior:
Changing Slider Axis on the Pinch Slider script should also change TrackVisuals and TickMarks orientation, if TrackVisuals and TickMarks object is supplied.
When user changes the SliderAxis of the PinchSlider:
The position of TrackVisuals and TickMarks will be reset every time the user changes the SliderAxis. So the user will need to position these manually.
The scale will NOT be updated in TrackVisuals and TickMarks.
If TrackVisuals and TickMarks are not specified, then TrackVisuals and TickMarks are not updated.

Should be great to add:
Recognized that as well
@julenka FYI
Hello,
I am interested to fix this
Is this currently assigned to someone?
If someone is already working on it or was planning to work on it then I will pick another bug.
Please let me know
Artemis
Hi, thank you for offering to help! Nobody is looking at it, I'll assign it to you.
Hi @artsouflMS , it would be good to clarify the behavior of slider when visuals are / are not present beefore making the PR, just be clear on what you'll be doing. Trying to avoid case where you make a PR and it ends up being something that might not be what others want. I've added a few additionally specs to the Expected Behavior section. Could you add more details for the behavior you plan to implement for the slider?
Thank you again for your help!
Here are the changes I made:
Changing Slider Axis on the Pinch Slider script should also change TrackVisuals and TickMarks orientation, if TrackVisuals and TickMarks object is supplied.
There should be tests to verify that track visuals and tickmarks are oriented properly given slider orientation. Additionally, there should be a test to verify that if the visuals are not specified, that the slider will still work.
Finally, documentation should state that visuals will be oriented to match orientation, but will not scale to match the endpoints of the slider.
Hi @julenka , thank you for your update
The behaviour that I am planning to implement is the following:
When user changes the SliderAxis of the PinchSlider:
The TrackVisuals orientation will change to match the new axis
Its position will be reset so its at the center of the slider and doesn't retain any faulty position based on previous orientation.
The TickMarks layout of the grid will be updated to match the new axis
The rotation as well will change in case of slider axis being in z axis.
The position will be reset so its at the center of the slider and doesn't retain any faulty position based on previous orientation.
The position of TrackVisuals and TickMarks will be reset every time the user changes the SliderAxis. So the user will need to position these manually.
The scale will NOT be updated in TrackVisuals and TickMarks.
Please let me know how does that sound.
Could I start implementing this behaviour?
Kind Regards,
Artemis
Hey @artsouflMS , @julenka ,
If you are interrested i modified the PinchSlider script :
The script : https://gist.github.com/Kent1LG/97fd90ad5b6858a2d55def8cbd2f99f5
I left all the Scripts names like before but i don't know if it's gonna be an issue, let me know.
I add comments with "QL" where i modified.
Keep me in touch !
Hello @Kent1LG
thanks for letting me know
Are you planning to merge your changes into mrtk_development?
Kind regards
Artemis
I'm planning to, yes. But i just don't want to slow you down with new scripts version or something else ahah.
In your opinion , Should i merge?
You don't slow me down, don't worry :).
I cant use your changes if these aren't in mrtk_development
So go ahead and create a PR
And when its accepted then I will be able to use your changes
Thanks
Artemis
Hi @Kent1LG and @artsouflMS it's great to see this collaboration and discussion! I just finished reviewing the PR, and after reading this thread I understand that one of my suggestions in the PR comments (to create a custom slider that extends PinchSlider) might not work. In that case I think it would be possible to put all the fields like tick marks, sounds, into the PinchSlider class, as long as they degrade gracefully when the fields are not filled in (in case people do not want these), and as long as there are tests to verify behavior. Thank you again for contributing!
Hi @artsouflMS, couple questions on the behavior:
The TickMarks layout of the grid will be updated to match the new axis
What is the behavior if no TickMarks are present?
The position of TrackVisuals and TickMarks will be reset every time the user changes the SliderAxis. So the user will need to position these manually.
What if TrackVisuals or TickMarks are not provided?
For now I assume that if these are not provided, then TrackVisuals and TickMarks do not get updated.
Other than those follow ups, I think this sounds good. You can go ahead an implement, I've updated the bug with the expected behavior, and tests / documentation to add
Hi @julenka
thank you for your update
I will start implementing the above behaviour
As you said, if TickMarks or TrackVisuals aren't provided then they are not updated
Thank you,
Artemis