Search Issue Tracker
Fixed in 5.0.X
Votes
7
Found in
4.5.1f3
Issue ID
615213
Regression
No
Screenshot taken in Landscape mode is not rotated accordingly on WP8
Steps to reproduce:
1. Add the following script to any project:
Texture2D screenshot;
void OnGUI()
{
if (screenshot != null) {
GUI.DrawTexture (new Rect (0, 30, 128,128), screenshot);
}
if (GUILayout.Button ("Take", GUILayout.MinHeight(64)))
{
int width = Screen.width;
int height = Screen.height;
screenshot = new Texture2D(width, height, TextureFormat.RGB24, false);
screenshot.ReadPixels(new Rect(0, 0, width, height), 0, 0);
screenshot.Apply();
}
}
2. Deploy to Windows Phone 8
3. Orientate device to landscape orientation
4. Click on "Take" button. Image will appear rotated.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
TylerO
Sep 07, 2014 16:27
Any progress on this bug? It is preventing us from publishing to Windows Phone 8/8.1!
Meltdown
Aug 27, 2014 23:51
Still have this issue in Unity 4.5.1
TylerO
Jul 26, 2014 17:41
I too am having this problem, causing my minimap (which uses ReadPixels) to be rotated