Method OnDestroy OnDestroy() Makes sure that the child rigs get destroyed in an undo-firndly manner. Invalidates the rig cache. Declaration protected override void OnDestroy() Overrides CinemachineVirtualCameraBase.OnDestroy()