Animated Shadow causing errors displaying modals in WebGL

0 votes
asked Nov 1, 2016 in Issue by anonymous
retagged Nov 1, 2016

With the AnimatedShadow script, the SetShadow method seems to be creating some issues on WebGL builds of our app.  When we try to pop a modal, nothing happens.  On top of that, it creates an infinite loop of null references that all point to that function.

The fix I found was to add in 

#if UNITY_WEBGL
	instant = true;
#endif

just before the 

if (Application.isPlaying && !instant) {

EDIT:

I've found that the culprit lies in the 

TweenManager.TweenFloat

function.  When displaying or hiding a dialog, that function is called to handle animations, and in both cases avoiding it and doing the assignment directly allows dialogs to show and hide on WebGL.  I've not gone deeper to see what exactly in it could be causing the issue.

commented Jan 5, 2017 by admin (31,720 points)
Hi there,

I'm looking into this issue, and should hopefully have a solution for the next update :)

~ 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 :)
...