UnityEngine.NavMeshAgent.SamplePathPosition C# (CSharp) Method

SamplePathPosition() private method

private SamplePathPosition ( int areaMask, float maxDistance, NavMeshHit &hit ) : bool
areaMask int
maxDistance float
hit NavMeshHit
return bool
        public extern bool SamplePathPosition(int areaMask, float maxDistance, out NavMeshHit hit);
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]

Usage Example

コード例 #1
0
 static public int SamplePathPosition(IntPtr l)
 {
     try{
         UnityEngine.NavMeshAgent self = (UnityEngine.NavMeshAgent)checkSelf(l);
         System.Int32             a1;
         checkType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         UnityEngine.NavMeshHit a3;
         System.Boolean         ret = self.SamplePathPosition(a1, a2, out a3);
         pushValue(l, ret);
         pushValue(l, a3);
         return(2);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
All Usage Examples Of UnityEngine.NavMeshAgent::SamplePathPosition