|
|
|
|
|
|
[SerializeField, HideIf("useLiveCamera")] |
|
|
|
CinemachineVirtualCamera targetCamera; |
|
|
|
|
|
|
|
[SerializeField] |
|
|
|
NoiseSettings settings; |
|
|
|
|
|
|
|
public override void Execute(GameObject instigator = null) |
|
|
|
|
|
|
var noise = cam.GetCinemachineComponent<CinemachineBasicMultiChannelPerlin>(); |
|
|
|
|
|
|
|
if(noise == null && settings != null) |
|
|
|
cam.AddCinemachineComponent<CinemachineBasicMultiChannelPerlin>(); |
|
|
|
noise = cam.AddCinemachineComponent<CinemachineBasicMultiChannelPerlin>(); |
|
|
|
|
|
|
|
noise.m_NoiseProfile = settings; |
|
|
|
} |
|
|
|