Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: escpodgames on February 12, 2013, 11:50:55 PM

Title: NullReferenceError with iTween [solved]
Post by: escpodgames on February 12, 2013, 11:50:55 PM
Hey Guys,

I'm getting a NullReferenceError with iTween Move To and iTween Rotate To actions. I found an old thread (from Nov 2011) but there was no mention of how to fix it.

http://hutonggames.com/playmakerforum/index.php?topic=842.0

Using Unity 4 and the latest iTween - Any ideas?

Cheers
Andrew
Title: Re: NullReferenceError with iTween
Post by: Jake on February 13, 2013, 03:48:49 AM
I got those errors when exiting the game while an iTween operation runs. There's exists an iTween Stop action, calling this before destroying the FSM's object or exiting the game should prevent those errors.
Title: Re: NullReferenceError with iTween
Post by: escpodgames on February 13, 2013, 04:12:43 AM
Pin pointed the issue to user error  ::) had turned off the FSM setting the Game Object to move.