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

CanvasSlider handle runs out of bounds #11718

Closed
johannes-weidenfeller opened this issue Jul 19, 2023 · 1 comment
Closed

CanvasSlider handle runs out of bounds #11718

johannes-weidenfeller opened this issue Jul 19, 2023 · 1 comment

Comments

@johannes-weidenfeller
Copy link

johannes-weidenfeller commented Jul 19, 2023

This issue has been migrated a new MRTK repository, and the status of this issue will now be tracked at the following location:


Describe the bug

When using the CanvasSlider component and adapting the Min and Max values, the start and end point of the slider still correspond to values of 0 and 1. This causes the slider handle to
i) not be positioned at the left edge when taking on the minimum value and
ii) run out of bounds if the maximum value is higher than 1 (see image below).

To reproduce

Steps to reproduce the behavior:

Add a canvas slider component on a world space canvas and change the minimum and maximum values to values other than 0 and 1.

Expected behavior

The slider start and end values should correspond to the minimum and maximum values set.

Screenshots

image

Your setup (please complete the following information)

  • Unity Version 2021.3.19.f1
  • MRTK Version 3.0.0-pre.17

Target platform (please complete the following information)

  • HoloLens 2
@marlenaklein-msft
Copy link
Contributor

@johannes-weidenfeller, thanks for reporting the bug! It should be fixed with this change #11742. Please reopen this thread if you continue to see any issues.

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

No branches or pull requests

4 participants