Ejemplo n.º 1
0
 public void Init(ScreenshotConfig config, bool showDevice = false)
 {
     m_Config             = config;
     m_ShowDetailedDevice = showDevice;
     // InitPresets();
     UpdateDeviceSelectorList();
 }
Ejemplo n.º 2
0
        public void Init(SerializedObject s, Object obj, ScreenshotConfig config, SerializedProperty configProperty)
        {
            serializedObject = s;
            m_Obj            = obj;
            m_Config         = config;

            m_DestinationFolder             = configProperty.FindPropertyRelative("m_DestinationFolder");
            m_FileFormat                    = configProperty.FindPropertyRelative("m_FileFormat");
            m_ColorFormat                   = configProperty.FindPropertyRelative("m_ColorFormat");
            m_RecomputeAlphaLayer           = configProperty.FindPropertyRelative("m_RecomputeAlphaLayer");
            m_JPGQuality                    = configProperty.FindPropertyRelative("m_JPGQuality");
            m_CaptureMode                   = configProperty.FindPropertyRelative("m_CaptureMode");
            m_AntiAliasing                  = configProperty.FindPropertyRelative("m_MultisamplingAntiAliasing");
            m_Cameras                       = configProperty.FindPropertyRelative("m_Cameras");
            m_CameraMode                    = configProperty.FindPropertyRelative("m_CameraMode");
            m_ExportToDifferentLayers       = configProperty.FindPropertyRelative("m_ExportToDifferentLayers");
            m_Resolutions                   = configProperty.FindPropertyRelative("m_Resolutions");
            m_ResolutionCaptureMode         = configProperty.FindPropertyRelative("m_ResolutionCaptureMode");
            m_Overlays                      = configProperty.FindPropertyRelative("m_Overlays");
            m_CaptureActiveUICanvas         = configProperty.FindPropertyRelative("m_CaptureActiveUICanvas");
            m_PreviewInGameViewWhilePlaying = configProperty.FindPropertyRelative("m_PreviewInGameViewWhilePlaying");
            m_ShowGuidesInPreview           = configProperty.FindPropertyRelative("m_ShowGuidesInPreview");
            m_GuideCanvas                   = configProperty.FindPropertyRelative("m_GuideCanvas");
            m_GuidesColor                   = configProperty.FindPropertyRelative("m_GuidesColor");
            m_ShowPreview                   = configProperty.FindPropertyRelative("m_ShowPreview");
            m_PreviewSize                   = configProperty.FindPropertyRelative("m_PreviewSize");
            m_ShotMode                      = configProperty.FindPropertyRelative("m_ShotMode");
            m_MaxBurstShotsNumber           = configProperty.FindPropertyRelative("m_MaxBurstShotsNumber");
            m_ShotTimeStep                  = configProperty.FindPropertyRelative("m_ShotTimeStep");
            m_PlaySoundOnCapture            = configProperty.FindPropertyRelative("m_PlaySoundOnCapture");
            m_DontDestroyOnLoad             = configProperty.FindPropertyRelative("m_DontDestroyOnLoad");

            m_ShotSound         = configProperty.FindPropertyRelative("m_ShotSound");
            m_StopTimeOnCapture = configProperty.FindPropertyRelative("m_StopTimeOnCapture");
            m_OverrideFiles     = configProperty.FindPropertyRelative("m_OverrideFiles");



            CreateResolutionReorderableList();
            CreateOverlayList();
            CreateCameraReorderableList();


            m_Selector = new DeviceSelector();
            m_Selector.Init(m_Config);
        }