protected void InitIngamePreview()
 {
     m_PreviewOverlayList.Clear();
     m_PreviewOverlayList.AddRange(m_Config.m_Overlays);
     if (m_Config.m_ShowGuidesInPreview)
     {
         m_GuidesOverlay = new ScreenshotOverlay(true, m_Config.m_GuideCanvas);
         m_PreviewOverlayList.Add(m_GuidesOverlay);
     }
     m_ScreenshotTaker.ApplySettings(GetActiveCameras(), m_PreviewOverlayList, m_Config.m_CaptureMode, m_Config.m_CaptureActiveUICanvas);
 }
Esempio n. 2
0
        protected void InitIngamePreview()
        {
            m_PreviewOverlayList.Clear();
            m_PreviewOverlayList.AddRange(m_Config.m_Overlays);
            if (m_Config.m_ShowGuidesInPreview)
            {
                m_GuideInstance = GameObject.Instantiate(m_Config.m_GuideCanvas.gameObject);
                m_GuideInstance.SetActive(true);
            }

            InitScreenshotTaker();
            m_ScreenshotTaker.ApplySettings(m_Config.GetActiveCameras(), m_PreviewOverlayList, m_Config.m_CaptureMode, m_Config.m_CaptureActiveUICanvas);
        }