OffMeshLink
extends Component
The OffMeshLink component is typically used to manually define specific paths, such as jumping from one platform to another or climbing down from a ladder to the ground.
typescript
let obj = new GameObject();
let com = obj.AddComponent<OffMeshLink>(OffMeshLink);成员变量
OffMeshLink.startTransform : Transform |
| Specifies the starting position of the link as the startTransform. |
OffMeshLink.biDirectional : boolean |
| Whether the current navigation grid separation link allows bidirectional movement. |
OffMeshLink.endTransform : Transform |
| Specifies the transform that marks the end position of the link. |
OffMeshLink.area : number |
| The index of the region to which the link belongs. |
OffMeshLink.activated : boolean |
| Whether the current link is allowed to be searched for pathfinding. |
