By 3drealita
on Fri, 02/02/2018 - 11:53
Hello,
on android work very well, after klik on button, then make printscreen and save to the galery "3Drealita".... but if I want build it for ios then unity alert "Assets/Scripts/ContentManager.cs(484,30): error CS0103: The name `saveToGallery' does not exist in the current context"
the code is
#elif UNITY_IPHONE while(!photoSaved) { photoSaved = saveToGallery(RefreshPath); StartCoroutine(Wait(.5f)); } UnityEngine.iOS.Device.SetNoBackupFlag(RefreshPath); #endif } public static IEnumerator Wait(float delay) { float pauseTarget = Time.realtimeSinceStartup + delay; while(Time.realtimeSinceStartup < pauseTarget){ yield return null; } }
please help me...
thank you