用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:navmeshpath:navmeshpath

NavMeshPath 导航网格路径

class in UnityEngine

Description 描述

A path as calculated by the navigation system.

导航网格系统计算的路径。

The path is represented as a list of waypoints stored in the corners array. These points are not set directly from user scripts but a NavMeshPath with points correctly assigned is returned by the NavMesh.CalculatePath function and the NavMeshAgent.path property.

该路径代表存储在corners 数组中的路径点的列表。这些点不是直接从用户脚本设置。而是通过NavMesh.CalculatePath函数和NavMeshAgent.path属性返回分配的当前导航网格路径点。

Variables 变量

cornersCorner points of the path. (Read Only)
路径拐角点。(只读)
statusStatus of the path. (Read Only)
路径的状态。(只读)

Constructors 构造

NavMeshPathNavMeshPath constructor.
导航网格路径构造函数。

Public Functions 公共函数

ClearCornersErase all corner points from path.
从路径清除所有拐角点。
GetCornersNonAllocCalculate the corners for the path.
计算路径的拐角。
script/unityengine/classes/navmeshpath/navmeshpath.txt · 最后更改: 2016/08/02 05:25 (外部编辑)