playMaker

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

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
NullReferenceError with iTween [solved]
« 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
« Last Edit: February 13, 2013, 04:13:10 AM by LampRabbit »

Jake

  • Junior Playmaker
  • **
  • Posts: 61
    • Fluffy Underware
Re: NullReferenceError with iTween
« Reply #1 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.

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: NullReferenceError with iTween
« Reply #2 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.