Skip to content

format

typescript
AimIK.aimTransform

class: 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_nametypedescription

reture

typedescription
Transform|nullThe Transform used for aiming at a target.

code example

typescript
let obj = new GameObject();
let aimIk = obj.AddComponent<AimIK>(AimIK);
aimIk.aimTransform;