Question by
josephasl · Nov 26, 2018 at 07:05 PM ·
iosscreenshot
How to square screenshot wider than screen size?
Hi I'm pretty new to Unity and I'm trying to work out how to take a square screenshot using the height of the screen as the width and height of the square. Currently I'm taking a screenshot using this to capture the screen. This is for iOS.
Texture2D ss = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false);
ss.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0);
ss.Apply();
Debug.Log("Permission result: " + NativeGallery.SaveImageToGallery(ss, "Screenshots", "test"));
But I'm trying to work out how to capture this:
Do I need to temporarily use a different camera with a different aspect ratio to render what is outside the screen? Not sure how to go about this..
Thanks!
screen-shot-2018-11-26-at-190051.png
(10.4 kB)
Comment