Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: SeanC on August 06, 2017, 08:37:12 PM

Title: Can't store "NavMeshAgent" component in object variable "SOLVED"
Post by: SeanC on August 06, 2017, 08:37:12 PM
I'm scrolling through all the potential variables I could set my Object variable to, but for the life of me I can't find "NavMeshAgent", even under the "UnityEngine" submenu. Am I missing it?

(http://i.imgur.com/ZazABC1.png)
Title: Re: Can't store "NavMeshAgent" component in object variable
Post by: SeanC on August 06, 2017, 08:46:57 PM
Found it under "UnityEngine>AI". Cool feature I didn't know about with Playmaker that helped me find it:
Drag a component into your variables menu and it will create a variable for you with that object set as the input. It also automagically sets the created variable to the correct type. Very awesome!


(http://i.imgur.com/kpSBz3d.png)