CinemachineMixingCamera.SetWeight Method (Int32, Single)

Cinemachine

CinemachineMixingCameraSetWeight Method (Int32, Single)

Set the weight of the child at an index.

Namespace:  Cinemachine
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public void SetWeight(
	int index,
	float w
)
function SetWeight(index, w);

Parameters

index
Type: SystemInt32
The child index. Only immediate CinemachineVirtualCameraBase children are counted.
w
Type: SystemSingle
The weight to set. Can be any non-negative number.
See Also