Version: 2023.1

Animator.SetLookAtWeight

切换到手册
public void SetLookAtWeight (float weight);
public void SetLookAtWeight (float weight, float bodyWeight);
public void SetLookAtWeight (float weight, float bodyWeight, float headWeight);
public void SetLookAtWeight (float weight, float bodyWeight, float headWeight, float eyesWeight);
public void SetLookAtWeight (float weight, float bodyWeight= 0.0f, float headWeight= 1.0f, float eyesWeight= 0.0f, float clampWeight= 0.5f);

参数

weight (0-1) LookAt 的全局权重,其他参数的乘数。
bodyWeight (0-1) 确定执行 LookAt 的身体比重。
headWeight (0-1) 确定执行 LookAt 的头部比重。
eyesWeight (0-1) 确定执行 LookAt 的眼睛比重。
clampWeight (0-1) 0.0 means the character is unrestrained in motion. 1.0 means the character is clamped (look at becomes impossible). 0.5 means the character is able to move on half of the possible range (180 degrees).

描述

设置 LookAt 权重。