Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mupp on March 29, 2021, 07:20:27 PM

Title: UI Get Last Pointer Event Data Input Button error [SOLVED]
Post by: Mupp on March 29, 2021, 07:20:27 PM
If I use this action and don't send an event I get this error. But I don't want to send an event, just store the button. What can I do?

Code: [Select]
NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.UiGetLastPointerEventDataInputButton.ExecuteAction () (at Assets/PlayMaker/Actions/UI/EventSystem/UiGetLastPointerEventDataInputButton.cs:55)
HutongGames.PlayMaker.Actions.UiGetLastPointerEventDataInputButton.OnEnter () (at Assets/PlayMaker/Actions/UI/EventSystem/UiGetLastPointerEventDataInputButton.cs:38)
HutongGames.PlayMaker.FsmState.ActivateActions (System.Int32 startIndex) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:222)
HutongGames.PlayMaker.FsmState.OnEnter () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:192)
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3070)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3009)
HutongGames.PlayMaker.Fsm.UpdateStateChanges () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2942)
HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3086)
HutongGames.PlayMaker.Fsm.Update () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2229)
PlayMakerFSM.Update () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:620)
Title: Re: UI Get Last Pointer Event Data Input Button error
Post by: Alex Chouls on March 29, 2021, 09:46:44 PM
Yeah, looks like that was an oversight in the design of that action.

Try the attached version instead (will also be in the next update).
Title: Re: UI Get Last Pointer Event Data Input Button error
Post by: Mupp on March 30, 2021, 08:48:15 AM
That works. Thanks.