UnityEngine.NavMeshAgent.INTERNAL_CALL_Warp C# (CSharp) Method

INTERNAL_CALL_Warp() private method

private INTERNAL_CALL_Warp ( NavMeshAgent self, Vector3 &newPosition ) : bool
self NavMeshAgent
newPosition Vector3
return bool
        private static extern bool INTERNAL_CALL_Warp(NavMeshAgent self, ref Vector3 newPosition);
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]

Usage Example

コード例 #1
0
 /// <summary>
 ///   <para>Warps agent to the provided position.</para>
 /// </summary>
 /// <param name="newPosition">New position to warp the agent to.</param>
 /// <returns>
 ///   <para>True if agent is successfully warped, otherwise false.</para>
 /// </returns>
 public bool Warp(Vector3 newPosition)
 {
     return(NavMeshAgent.INTERNAL_CALL_Warp(this, ref newPosition));
 }