updateUpAxis code error

Hello,

I’ve been suggested to use NavMeshAgent.updateUpAxis to prevent the 3d object from falling to it’s original rotation and ignore my settings. But in the code I receive this massage:

UnityEngine.AI.NavMeshAgent does not contain a definition for updateUpAxis and no extension method updateUpAxis of type `UnityEngine.AI.NavMeshAgent’ could be found. Are you missing an assembly reference?

How can it be if it actually listed in Unity documentation?

What unity version are you using?

From the documentations it seems that this method is available from unity 5.6 and up.

98510-chrome-2017-07-27-13-41-01.png