AtticArcade / hotween

Automatically exported from code.google.com/p/hotween
0 stars 0 forks source link

LoopType.Yoyo > 'LoopType' does not contain a definition for 'Yoyo' #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Simply put "HOTween.To(myObject, 0.5f, new TweenParms().Prop("scale", new 
Vector3(1.05f, 1.05f, 1f)).Loops(-1,LoopType.Yoyo));"
2.
3.

What is the expected output? What do you see instead?
Expected output - Can run the game
I saw it gives me error like:
error CS0117: `LoopType' does not contain a definition for `Yoyo'
error CS1502: The best overloaded method match for 
`Holoville.HOTween.TweenParms.Loops(int, Holoville.HOTween.LoopType)' has some 
invalid arguments
error CS1503: Argument `#2' cannot convert `object' expression to type 
`Holoville.HOTween.LoopType'
error CS1502: The best overloaded method match for 
`Holoville.HOTween.HOTween.To(object, float, Holoville.HOTween.TweenParms)' has 
some invalid arguments
error CS1503: Argument `#3' cannot convert `object' expression to type 
`Holoville.HOTween.TweenParms'

What version of the product are you using? On what operating system?
How do I check the version of the product? I downloaded like a week ago
I am running on Unity 4 Pro, with Mac

Please provide any additional information below.
I am using a 2D plugin called "2D ToolKit", and it is a sprite that i want to 
scale

Original issue reported on code.google.com by dereklam...@gmail.com on 24 Feb 2013 at 4:51

GoogleCodeExporter commented 8 years ago
LoopType indeed contains a definition for Yoyo. I use it constantly, with Unity 
4, and without issues. I also tried to use your exact code (I use 2D Toolkit 
too) and everything works perfectly, so I suppose you might have some error 
somewhere else that makes the error log go "crazy"?

Could you create a sample project that replicates this issue, make a package 
(without the TK2DROOT folder, which I'll insert from my side) and attach it, so 
I can check out what's wrong?

To check HOTween's version, fire a log from somewhere, saying:
Debug.Log(HOTween.VERSION);

Original comment by daniele....@gmail.com on 24 Feb 2013 at 11:22

GoogleCodeExporter commented 8 years ago
Hi,

Sorry for this confusing topic. I just realised I imported some other tween 
plugin before I decided to use HOTween. And that plugin does this error 
together with HOTween when using Looptype. It works fine once I deleted it. I 
am sorry for this. But thanks for the email. :)

Original comment by dereklam...@gmail.com on 24 Feb 2013 at 11:54

GoogleCodeExporter commented 8 years ago
Hi,

happy that it's working now. My bad for not suggesting that might be the error, 
but glad you found it :)

Original comment by daniele....@gmail.com on 24 Feb 2013 at 12:04