Animations incorrect

0 votes
asked Jul 25, 2017 in Critical bug by maskedmouse (170 points)
Using Unity 2017.1f3 and the new Material UI 1.1.7 and its new Material UI Scaler, the animations are still not scaled. So when we for instance slide out a Screen it slides 10% and then turns the gameobject off. The expected result was that it would slide out all the way.
commented Jul 27, 2017 by admin (31,720 points)
Hi there,

What are your Canvas and Scaler settings?

~ Declan.
commented Jul 27, 2017 by maskedmouse (170 points)

Canvas with Screen Space - Overlay and a Material UI Scaler with Constant Physical Size (default settings so 160 dpi, scale modifier 1, snap level 8 and reference pixels per unit 100)

what we've did previously in version 1.1.6 as well we multiplied the slideInPercent with the MaterialUIScaler's scaleFactor. So we applied the same fix in version 1.1.7 to solve this problem.


slideInPercent = screenView.slideInPercent * MaterialUIScaler.GetRootScaler(transform).scaleFactor;
slideOutPercent = screenView.slideOutPercent * MaterialUIScaler.GetRootScaler(transform).scaleFactor;


commented Aug 31, 2017 by admin (31,720 points)
Looks like that might be the fix it needs, thanks for that.

~ Declan.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Welcome to MaterialUI support! Ask us anything :)