private static extern void NativeDebugDrawIntermediate( [MarshalAs(UnmanagedType.I4)] NavmeshDebugDrawType debugDrawType, [MarshalAs(UnmanagedType.LPStruct)] Vector3 upVec, [MarshalAs(UnmanagedType.LPStruct)] Vector3 rightVec, [MarshalAs(UnmanagedType.LPStruct)] Vector3 outVec, out int numVertices, out int numIndices);
public static void RenderIntermediate(NavmeshDebugDrawType debugDrawType) { Vector3 upVec, rightVec, outVec; GetBillboardVectors(out upVec, out rightVec, out outVec); int numVertices, numIndices; NativeDebugDrawIntermediate( debugDrawType, upVec, rightVec, outVec, out numVertices, out numIndices); DrawDebugData(numVertices, numIndices); }