Method SetWeight
SetWeight(int, float)
Set the weight of the child at an index.
선언
public void SetWeight(int index, float w)
파라미터
타입 | 이름 | 설명 |
---|---|---|
int | index | The child index. Only immediate CinemachineVirtualCameraBase children are counted. |
float | w | The weight to set. Can be any non-negative number. |
SetWeight(CinemachineVirtualCameraBase, float)
Set the weight of the child CinemachineVirtualCameraBase.
선언
public void SetWeight(CinemachineVirtualCameraBase vcam, float w)
파라미터
타입 | 이름 | 설명 |
---|---|---|
CinemachineVirtualCameraBase | vcam | The child camera. |
float | w | The weight to set. Can be any non-negative number. |