Tween Manager Crashes Unity

0 votes
asked Feb 10, 2016 in Critical bug by anonymous
When I attempt to use the Tween Manager that comes with Material UI, it crashes Unity.

2 Answers

0 votes
answered Feb 11, 2016 by admin (31,720 points)
selected Feb 12, 2016 by admin
Best answer
If you want to use the integrated Tween engine in your code, you should use AutoTween.
TweenManager is just the GameObject that keeps track of the tweens.

In order to use AutoTween, you can just call it using TweenManager.AutoTween() in your code, and pass the parameters you want (you can search for " TweenManager.AutoTween" in the code to find some examples).

We'll be adding some documentation and tutorials soon on everything regarding MaterialUI, sorry for that!

If you don't want to do things using code, but do things in the Inspector, you should attach an EasyTween component to the GameObject you want to tween!

Feel free to ask for more detail!

0 votes
answered Feb 11, 2016 by admin (31,720 points)
Hi there,

Are you able to provide a sample of how you attempted to use TweenManager, or an example of how to reproduce the crash?

Cheers :)

~ Declan
commented Feb 11, 2016 by anonymous
Hi Declan, thanks for the quick response. When I select an object in the hierarchy, and then select Tween manager from the Component Menu, the selected object disappears from the hierarchy. When I hit undo, the Editor crashes.
commented Feb 11, 2016 by admin (31,720 points)
Hey :)

TweenManager gets added when you use it via code, and isn’t designed to be added via the editor.

So for the next update, we removed the possibility to add it as a component, as it's not its intended use.

What were you trying to do with TweenManager?

commented Feb 11, 2016 by anonymous
I was trying to have an animation where a menu icon morphed into a back button, similar to the Spinny Arrow Button in the old Material UI package.
Welcome to MaterialUI support! Ask us anything :)