public override void SetUp() { m_Cam = CreateGameObject("MainCamera", typeof(Camera), typeof(CinemachineBrain)).GetComponent <Camera>(); var vcamHolder = CreateGameObject("CM Vcam", typeof(CinemachineVirtualCamera), typeof(CinemachineConfiner2D)); m_Vcam = vcamHolder.GetComponent <CinemachineVirtualCamera>(); m_Confiner2D = vcamHolder.GetComponent <CinemachineConfiner2D>(); m_Vcam.Priority = 100; m_Cam.orthographic = true; m_Vcam.AddExtension(m_Confiner2D); m_Vcam.m_Lens.OrthographicSize = UnityVectorExtensions.Epsilon; base.SetUp(); }