Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: Xander Davis on July 19, 2017, 03:21:55 AM

Title: PlayMaker Fails to Set NavMesh Destination on Apple TV (Works in Editor)[SOLVED]
Post by: Xander Davis on July 19, 2017, 03:21:55 AM
While it works perfectly in the editor, I get the following error from Xcode debug when my AI is trying to set its destination on its NavMesh Actor.

(The way I'm trying to set it is dragging the Nav Mesh Actor component from the Actor itself into the State)

Quote
ArgumentException: Set Method not found for 'destination'
  at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object value, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.ReflectionUtils.SetMemberValue (System.Reflection.MemberInfo member, System.Object target, System.Object value) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.FsmProperty.SetValue () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.FsmState.OnUpdate () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.Update () [0x00000] in <filename unknown>:0
 
(Filename: currently not available on il2cpp Line: -1)



Please advise?  Help?
Title: Re: PlayMaker Fails to Set NavMesh Destination on Apple TV (Works in Editor)
Post by: Xander Davis on July 19, 2017, 03:52:41 AM
After spending 6 hours trying to figure this out, I realized I can't set the destination by dragging the Nav Mesh Agent into the State.  Instead, I used the Set Agent Destination action from the Path Finding package and it worked.

What is super confusing about this obvious fix is how it worked in the editor-- which is why it didn't occur to me that it's literally not even part of PlayMaker yet without the additional actions.

6 hours... wtf...

At least it works now...
Title: Re: PlayMaker Fails to Set NavMesh Destination on Apple TV (Works in Editor)
Post by: tcmeric on July 19, 2017, 06:38:26 AM
Hi, sorry that you had such a frustrating time. I can relate. My understanding is that some devices don't directly using get/set drag. However, this can be overcome with the linker wizard. Have a look at this thread here and see the video: http://hutonggames.com/playmakerforum/index.php?topic=11126.0

Currently the ecosystem is being updated, so you can not likely download it that way, however maybe djaydino might have a direct link for us.
Title: Re: PlayMaker Fails to Set NavMesh Destination on Apple TV (Works in Editor)
Post by: tcmeric on July 19, 2017, 06:41:25 AM
My bad, its already there.

Go the playmaker tab at the top of unity, then Addons > Tools > Linker Wizard
Title: Re: PlayMaker Fails to Set NavMesh Destination on Apple TV (Works in Editor)
Post by: amoraleite on March 16, 2019, 09:44:42 AM
• Hey thank you very much for guide me to the Ecosystem! This is awesome thing!
• And thank you for the tip about Set NavMesh, save my time!  :)
Title: Re: PlayMaker Fails to Set NavMesh Destination on Apple TV (Works in Editor)[SOLVED]
Post by: RuchiDhirAbout on April 16, 2019, 07:19:17 AM
Nice post, thanks for this!