playMaker

Author Topic: Help with Input.touches Custom Actions  (Read 1446 times)

DIamod

  • Playmaker Newbie
  • *
  • Posts: 17
Help with Input.touches Custom Actions
« on: April 17, 2019, 09:21:06 AM »
Hi, I just purchased Input.touches as jeanfabre mentioned (https://hutonggames.com/playmakerforum/index.php?topic=20395.0) that it worked well and had support on the wiki https://hutonggames.fogbugz.com/default.asp?W961
I have followed this but have problems

I downloaded and imported both packages
PlayMakerInputTouches.unitypackage
PlayMakerInputTouchesExamples.unitypackage

I added "PlayMakerInputTouchesProxy" in to the project, but there is no "Gesture" prefab only "SwipeGestureEvent"
https://i.imgur.com/YgEiSuS.png

So I am getting a lot of errors. https://i.imgur.com/XvlscKH.png

Help with this would be appreciated, thank you.


Hi, I managed to fix this :)
I am trying to get it working now, I can still play a scene but it throws this error
Code: [Select]
NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.InputTouchesGetTapInfo.OnEnter () (at Assets/PlayMaker Input Touches/Internal/Actions/InputTouchesGetTapInfo.cs:45)
HutongGames.PlayMaker.FsmState.ActivateActions (System.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)
« Last Edit: April 17, 2019, 12:34:55 PM by DIamod »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Help with Input.touches Custom Actions
« Reply #1 on: April 18, 2019, 04:36:35 AM »
Hi,

 I am going to have a look, I have to use it too. Maybe it needs a refresh with the latest version of Input.touches.


 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Help with Input.touches Custom Actions
« Reply #2 on: April 18, 2019, 05:21:58 AM »
Hi,

 I don't have this. Can you try on a fresh project? just install the latest input touche, latest playmaker, and then the input touche playmaker support package and check with a simple test.

 Bye,

 Jean

DIamod

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Help with Input.touches Custom Actions
« Reply #3 on: April 18, 2019, 08:02:24 AM »
Sure, I started a new project and imported only the required things.
I opened your test scene "PickObjectManager", but touch input does not work, my android phone is connected with unity remote but there is not recognition of my finger taps

https://i.imgur.com/xMbMU8s.png
« Last Edit: April 18, 2019, 02:05:56 PM by DIamod »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Help with Input.touches Custom Actions
« Reply #4 on: April 19, 2019, 02:54:38 AM »
Hi,

 ok, but you don't have this error anymore right?

 - samples: yes, I need a pass on them for them to work properly again, also, it will now be available on the ecosystem as well, with a github rep etc etc.

 - bonus, I am also working on an implementation for the TrackPadTouch asset, which allows you to benefit from multi touch on your mac via the trackpad! instructions will be provided

Bye,

 Jean