format
typescript
AimIK.aimTransformclass: AimIK
description
The Transform used for aiming at a target.
When you need a character or object to align with a specific position in the game, you can use this value to control the orientation of the character's head, body, or weapon towards the specified Transform object.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Transform|null | The Transform used for aiming at a target. |
code example
typescript
let obj = new GameObject();
let aimIk = obj.AddComponent<AimIK>(AimIK);
aimIk.aimTransform;