Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: KillerCreeper on August 13, 2018, 11:45:34 AM

Title: PlayerMaker Array Doesn't Work With Unity 2018.2
Post by: KillerCreeper on August 13, 2018, 11:45:34 AM
I've tried using "Mouse Pick 2d Event" and every time I play, I get this error:

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.MousePick2dEvent.DoRaycast () (at Assets/PlayMaker/Actions/Physics2D/MousePick2dEvent.cs:103)
HutongGames.PlayMaker.Actions.MousePick2dEvent.DoMousePickEvent () (at Assets/PlayMaker/Actions/Physics2D/MousePick2dEvent.cs:68)
HutongGames.PlayMaker.Actions.MousePick2dEvent.OnEnter () (at Assets/PlayMaker/Actions/Physics2D/MousePick2dEvent.cs:51)
HutongGames.PlayMaker.FsmState.ActivateActions (Int32 startIndex) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:205)
HutongGames.PlayMaker.FsmState.OnEnter () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:175)
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2767)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2714)
HutongGames.PlayMaker.Fsm.UpdateStateChanges () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2642)
HutongGames.PlayMaker.Fsm.Start () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1925)
PlayMakerFSM.Start () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:548)
Title: Re: PlayerMaker Array Doesn't Work With Unity 2018.2
Post by: KillerCreeper on August 13, 2018, 01:35:45 PM
I am guessing to fix this problem is to download an older version of Unity..
Title: Re: PlayerMaker Array Doesn't Work With Unity 2018.2
Post by: blackant on August 14, 2018, 09:46:49 AM
did you correctly set your code ?

i got same of error while i was trying to acces something that was not assigned to my variable.
Title: Re: PlayerMaker Array Doesn't Work With Unity 2018.2
Post by: krmko on August 14, 2018, 11:03:21 AM
Why don't you use arraymaker? It works fine in 2018.2.