playMaker

Author Topic: NullReferenceError with iTween [solved]  (Read 1076 times)

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
NullReferenceError with iTween [solved]
« on: February 12, 2013, 09: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
« Last Edit: February 13, 2013, 02:13:10 AM by LampRabbit »

Jake

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
    • Fluffy Underware
Re: NullReferenceError with iTween
« Reply #1 on: February 13, 2013, 01: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.

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: NullReferenceError with iTween
« Reply #2 on: February 13, 2013, 02:12:43 AM »
Pin pointed the issue to user error  ::) had turned off the FSM setting the Game Object to move.