Esempio n. 1
0
        protected static void SetInitParemeters()
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            AndroidPickerServices.Init();
#elif UNITY_IOS && !UNITY_EDITOR
            IOSPickerServices.Init();
#elif UNITY_STANDALONE || UNITY_EDITOR || UNITY_WEBGL
            StandalonePickerServices.Init();
#else
            //SetWebInitParemeters();
#endif
        }
Esempio n. 2
0
        public static void DeserializeCameraImage(bool p_saveToGallery)
        {
            SetInitParemeters();
#if UNITY_ANDROID && !UNITY_EDITOR
            AndroidPickerServices.DeserializeCameraImage(p_saveToGallery);
#elif UNITY_IOS && !UNITY_EDITOR
            IOSPickerServices.DeserializeCameraImage(p_saveToGallery);
#elif UNITY_STANDALONE || UNITY_EDITOR || UNITY_WEBGL
            StandalonePickerServices.DeserializeCameraImage(p_saveToGallery);
#else
            CallPickerFinishEvent(null);
            //WebPickerServices.DeserializeCameraImage(p_saveToGallery);
#endif
        }
Esempio n. 3
0
        public static void SerializeDataToAlbum(Texture2D p_image, string p_name)
        {
            SetInitParemeters();
#if UNITY_ANDROID && !UNITY_EDITOR
            AndroidPickerServices.SerializeDataToAlbum(p_image, p_name);
#elif UNITY_IOS && !UNITY_EDITOR
            IOSPickerServices.SerializeDataToAlbum(p_image, p_name);
#elif UNITY_STANDALONE || UNITY_EDITOR || UNITY_WEBGL
            StandalonePickerServices.SerializeDataToAlbum(p_image, p_name);
#else
            CallImageSavedFailedEvent();
            //WebPickerServices.SerializeDataToAlbum(p_image, p_name);
#endif
        }