Log in or register to post comments

Printscreen of display save to the gallery

February 2, 2018 - 3:53am #1

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

Log in or register to post comments