format
typescript
OffMeshLink.endTransformclass: OffMeshLink
description
Specifies the transform that marks the end position of the link.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Transform | The transform that marks the end position of the link. |
code example
typescript
let obj = new GameObject();
let com = obj.AddComponent<OffMeshLink>(OffMeshLink);
let endObj = new GameObject("end");
endObj.transform.position = new Vector3(5, 5, 5);
com.endTransform = endObj.transform;
Debug.Log("OffMeshLink: endTransform position is ", com.endTransform.position);