PlayMaker Help & Tips > PlayMaker Help

Issue with Finger Gestures and PlayMaker

(1/2) > >>

qholmes:
So this is the error i get when i build to my iPad.. It all works when i run in the editor.

My first scene does not have any FG in it but my second one does.. When the second scene opens it runs and i can use the FG inputs to move the camera around but when i touch one of my objects this error pops up in xcode and it dies..

I tried a very simple project and it seems to work fine.. Now i was just thinking.. in my test i use FG inputs so i will remove that in case it has something to do with it

NullReferenceException
  at HutongGames.PlayMaker.Fsm.SendEventToFsmOnGameObject (UnityEngine.GameObject gameObject, System.String fsmName, HutongGames.PlayMaker.FsmEvent fsmEvent) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.Event (HutongGames.PlayMaker.FsmEventTarget eventTarget, HutongGames.PlayMaker.FsmEvent fsmEvent) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Actions.SendEvent.OnEnter () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.FsmState.OnEnter () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.ChangeState (HutongGames.PlayMaker.FsmEvent fsmEvent) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.Event (HutongGames.PlayMaker.FsmEvent fsmEvent) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.Event (System.String fsmEventName) [0x00000] in <filename unknown>:0
  at TBComponent.Send (.Message msg) [0x00000] in <filename unknown>:0
  at TBFingerDown.RaiseFingerDown (Int32 fingerIndex, Vector2 fingerPos) [0x00000] in <filename unknown>:0
  at TBInputManager.FingerGestures_OnFingerDown (Int32 fingerIndex, Vector2 fingerPos) [0x00000] in <filename unknown>:0
  at (wrapper delegate-invoke) FingerGestures/FingerDownEventHandler:invoke_void__this___int_Vector2 (int,UnityEngine.Vector2)
  at FingerGestures.RaiseOnFingerDown (Int32 fingerIndex, Vector2 fingerPos) [0x00000] in <filename unknown>:0
  at FingerGestures.PerFinger_OnDown (.Finger source) [0x00000] in <filename unknown>:0
  at (wrapper delegate-invoke) FingerGestures/Finger/FingerEventDelegate:invoke_void__this___FingerGestures/Finger (FingerGestures/Finger)
  at FingerGestures+Finger.PostUpdate () [0x00000] in <filename unknown>:0
  at FingerGestures.UpdateFingers () [0x00000] in <filename unknown>:0
  at FingerGestures.Update () [0x00000] in <filename unknown>:0
  at TouchScreenGestures.Update () [0x00000] in <filename unknown>:0
 
(Filename:  Line: -1)

qholmes:
How should i set up PM for multiple scenes? Is there something special i am supposed to do? So i keep the PlayMakerGUI object persistent? And not have a new one in the new scene?

I just got a strange new error i have not scene that kind of let me to maybe some kind of conclusion like that?

The error is something like this:

MissingREferenceException: The object of type PlayMakerFSM has been destroyed but you are still trying to access it...

Q

qholmes:
So i removed the PlayMakerGUI from my second scene and it fixed the error in my test scene but did not fix my main project. I get the same error still.. It is like something is not initializing  or is but in the wrong order maybe?

It sucks that simple projects are working fine.. And mine works in the editor too...

Q

Alex Chouls:
I'm looking into this. A simple repro project would be very helpful. Either way, I should know more soon...

qholmes:
Ok i have run like 60 tests on this.. I think i have something now..

I use in my Template Send Event and GameObjectFSM... If i change that to FSMComponent and drag the FSM onto it then it works fine.. I just replaced the Template one with a new one in case there was some reference issue....... Nope it dies the same...

I have not upgraded to the new version yet.. I will do that now i guess.. 3.5 too i guess.

Anyway that is my end result. I assume i can just replace all those but it sucks as now my Template has to be customized.. before i just inserted it and it worked.. works fine in editor and it also works fine except when i am going from scene to scene for some strange reason..

Q

Navigation

[0] Message Index

[#] Next page

Go to full version