- Home /
Question by
nabajit_ · Jul 30, 2017 at 05:31 PM ·
unity 5javascriptnavmeshagent
Unable to enable or disable NavMeshAgent through script?
gameObject.GetComponent.<UnityEngine.AI.NavMeshAgent>().enabled= false;
This is not working. It does not throw any error either.
I tried same with BoxCollider and it works fine.
gameObject.GetComponent.<BoxCollider>().enabled= false;
Comment
Your answer
Follow this Question
Related Questions
I need help with a CharacterMotor script error in Unity5. This is formatted in Javascript. 0 Answers
Create Waypoint on mouseclick 0 Answers
BCE0019 "enabled" is not a member of "Object"(On JavaScript Script) 2 Answers
NavMeshAgent CalculatePath to SetPath ( Agent new Path, SetPath, initiatePath?)??? 0 Answers
How can I rotate ball with NavMeshAgent? 0 Answers