playMaker

Author Topic: UI Get Last Pointer Event Data Input Button error [SOLVED]  (Read 583 times)

Mupp

  • Full Member
  • ***
  • Posts: 167
UI Get Last Pointer Event Data Input Button error [SOLVED]
« 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)
« Last Edit: March 30, 2021, 12:10:10 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: UI Get Last Pointer Event Data Input Button error
« Reply #1 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).

Mupp

  • Full Member
  • ***
  • Posts: 167
Re: UI Get Last Pointer Event Data Input Button error
« Reply #2 on: March 30, 2021, 08:48:15 AM »
That works. Thanks.