format
typescript
OffMeshLink.startTransformclass: OffMeshLink
description
Specifies the starting position of the link as the startTransform.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Transform | The transform that specifies the starting position of the link. |
code example
typescript
let obj = new GameObject();
let com = obj.AddComponent<OffMeshLink>(OffMeshLink);
let startObj = new GameObject("start");
startObj.transform.position = new Vector3(0, 0, 0);
com.startTransform = startObj.transform;
Debug.Log("OffMeshLink: startTransform position is ", com.startTransform.position);