Version: 2022.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 权重。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961