Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: weilies on February 25, 2015, 02:36:17 AM

Title: Error "object reference not set to an instance of an object"[SOLVED]
Post by: weilies on February 25, 2015, 02:36:17 AM
I am getting
Quote
NullReferenceException: Object reference not set to an instance of an object
iTweenFSMEvents.iTweenOnStart (Int32 aniTweenID) (at Assets/PlayMaker/Include/iTweenFSMEvents.cs:15)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
iTween:CallBack(String) (at Assets/iTween/iTween.cs:7042)
iTween:TweenStart() (at Assets/iTween/iTween.cs:4585)
<Start>c__Iterator7:MoveNext() (at Assets/iTween/iTween.cs:6546)

when i try to perform iTween Move To action
Title: Re: Error "object reference not set to an instance of an object"
Post by: Fahrettin on February 25, 2015, 03:25:11 AM
Check this topics

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

http://hutonggames.com/playmakerforum/index.php?topic=9572.0
Title: Re: Error "object reference not set to an instance of an object"
Post by: weilies on February 25, 2015, 04:36:16 AM
http://hutonggames.com/playmakerforum/index.php?topic=6735.0
Uncheck 'Loop don't finish', Same error

http://hutonggames.com/playmakerforum/index.php?topic=9572.0
After deleted Asset\iTween folder, it generated compile errors
Assets/PlayMaker/Actions/iTween/iTweenLookFrom.cs(30,24): error CS0246: The type or namespace name `iTween' could not be found. Are you missing a using directive or an assembly reference?

:(

Actually it was a working project and a mins ago, i remember i upgraded NGUI and it  happened. i am currently using

could the error caused by an upgrade of NGUI?
Title: Re: Error "object reference not set to an instance of an object"
Post by: Fahrettin on February 25, 2015, 04:53:59 AM
After deleted Asset\iTween folder did you import iTween again from Playmaker Asset ?

NGUI can be problem i dont know because i didnt used it. This happened me when i updated iTween from asset store. After problem i deleted all iTween files from my project folder and imported it from Playmaker asset. That fixed my problem.
Title: Re: Error "object reference not set to an instance of an object"
Post by: weilies on February 25, 2015, 05:05:15 AM
it generates different error now
Title: Re: Error "object reference not set to an instance of an object"
Post by: Fahrettin on February 25, 2015, 05:21:04 AM
I dont know why do you get Photon error. I have never used it.
Can you check your Gameobject from Inspector tab if it has any empty iTween scripts. I had problem like that.
Title: Re: Error "object reference not set to an instance of an object"
Post by: weilies on February 25, 2015, 05:39:26 AM
Thanks Fahrettin,

i have no idea why itween components added to several of my GameObject...
it work correctly after remove the component.
Title: Re: Error "object reference not set to an instance of an object"
Post by: Fahrettin on February 25, 2015, 05:45:24 AM
Np weilies :)