Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mykhaylo

Pages: [1]
1
Hi,

I am trying to develop a unity plugin that is making screenshots for iOS, Android & WP8 Stores.
There are many different resolutions.

The problem is that NGUI is not updating when I am changing screen resolution.
  1. Screen.SetResolution(width, height, false);
After changing resolution, I am waiting for 5 frames.
This is the way I am taking screenshots:
  1. Texture2D screenShot = new Texture2D(width, height, TextureFormat.RGB24, false);
  2. screenShot.ReadPixels(new Rect(0, 0, width, height), 0, 0);
  3. screenShot.Apply();

How can I update NGUI to match my resolution?

Pages: [1]