MRTK V2 - Toggle-Dot moves outside of constraints

假装没事ソ 提交于 2019-12-13 03:35:09

问题


Description - I have a settings panel in my scene which appears if I click the settings button on my toolbar. By repeating this, I noticed one bug → The dot of all toggled toggles moves further and further. The dot of an untoggled toggle stays in the right position. Did someone fix that bug in the script interactable or did a workaround?

Screenshot

How to reproduce - I used the toggles that were given by the example package. Place one that is already toggled and one not toggled and start play mode. Activate and deactivate the script Interactable on your toggle and you should see this behavior

My specs
Unity 2019.2.8f
MRTK v2.0

-- Edit --
Confirmed that this issue has been fixed in Mrtk v2.1.


回答1:


Thanks for the report! I will ask one of our UX developers to investigate.

This will be tracked on our GitHub site as issue #6241.




回答2:


This seems to be a problem with the library.

Since it only happens when you enable and disable the script, it possibly gets the X position on start() and then uses that to change the position of the circle.




回答3:


This should be fixed in the latest MRTK verison (2.1) https://github.com/microsoft/MixedRealityToolkit-Unity/releases/tag/v2.1.0

Please try out



来源:https://stackoverflow.com/questions/58283654/mrtk-v2-toggle-dot-moves-outside-of-constraints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!