Issue#1480: Unity - Change GUI Resolution with Screen.SetResolution

  • Hi to everyone,

    i created a code that save Screenshots within Unity. Everything works fine but i've a problem with GUI adaptation when i change my screen resolution. I'm using "Simple UI" from unity Assets Store and it works great. My problem is when i change the resolution from code with:

    Screen.SetResolution(iWidth, iHeight, false);

    yield return new WaitForEndOfFrame();

    TakeScreenShot();

    The GUI is not updated to the current resolution. Everyone have any idea to solve this problem?...

    Change GUI Resolution with Screen.SetResolution

    0 Answers

    Sorry, your answer is too short !

  • Issue#203018: Unity - Win build: Resolution change invalidates rendertexture's - known issue?

    Hi all, just wanted to get an idea if this is a known issue I should be working around. Issue: any rendertexture which is previously created becomes invalidated when changing resolution on a windows build. Repro: 1) create rendertexture with depth: Code (CSharp): new RenderTexture(bufferSize, bufferSize, bitDepth, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Linear); 2) change screen resolution (NOTE: this snippet was to fix a rare gamma and aspect ratio bug on... Win build: Resolution change invalidates rendertexture's - known issue?

  • Issue#354175: Unity - Change Resolution - Screen Flickering

    Anyone knows how to fix screen flickering after resolution change? If i change screen resolution to lower than native resolution , screen will start flicker all the time "on black bars area" I thought its Win10 issue , but after starting game made in Unity ~ 4.6 evrything works without any issues (no flicker).

  • Issue#995812: Unity - GUI texture resolution in loading screen not adjusting

    Followed this tutorial about loading screens in YT and now I need help with my guiTexture because every time the resolution is changed the guiTexture doesn't adjust. And if possible is there a way to put a loading bar when the scene is changed through script? Thanks again! here is the script: Code (CSharp): #pragma strict static var LoadingScreenOn = true;   //Textures var Darth_Vader : Texture2D; var Death_Stroke : Texture2D; var Shang_Tsung : Texture2D;   function Start () {     if... GUI texture resolution in loading screen not adjusting

  • Issue#1014732: Unity - Hiding Rescale/Screen resolution change.

    Hi all, I have an application in which i have written a framerate optimizer mainly for the WebGL and mobile platforms. This optimizer can basically iterate through a list of "optimizations" and checks if the framerate got "good enough" in between each optimization. Lately we had a very bad case of low end device, relatively high end 3D objects. And the only affordable way to get it to render at a decent framerate was to downscale the resolution. Like going from 1080P to 720P. But since i... Hiding Rescale/Screen resolution change.

  • Issue#1086404: Unity - The Camera, GUI, and Screen Resolution

    Howdy! Currently working on a 2D game, just getting started. I'm wondering what are the best ways to go about handling GUI and screen resolution. For example, when I have some text displayed on the screen, if the screen size is rather large, the text will be displayed like this, But when the screen is shrunken down, the test moves position completely, Additionally, I'm also worried about how screen... The Camera, GUI, and Screen Resolution

  • Issue#7054: Unity - Issue: screenshots of GUI elements with rendertexture

    I'm making a drawing / coloring app. I use uGui for stamp/sticker functionality. I'm trying to use a rendertexture to make a screenshot. But the GUI elements don't show up on the render texture. The GUI elements are on a Screen Space - Camera canvas which is rendered by my Main Camera. When I'm taking a screenshot I set the target texture of my camera to a rendertexture, take my screenshot, and reset. Everything shows up in the PNG except the GUI elements. This is my code: Code (CSharp): ... Issue: screenshots of GUI elements with rendertexture

  • Issue#9043: Unity - Editor crashes on Game resolution change

    When trying to change the resolution / aspect radio of the Game tab in the editor, Unity crashes (every time, on an empty 2D project). Once the resolution entry is clicked (e.g. 1024x768), you can see the window layout change for a split second and then editor crashes. Logged as case #722777 on the tracker. Ubuntu 14.04.2 LTS, using open-source AMD driver with Mesa, AMD Radeon 7850, kernel 3.13.0-52-generic.

  • Issue#57979: Ubuntu - Unable to change screen resolution today,what has changed?

    I am using Ubuntu Gnome 15.10, I have had no issues since upgrading on 16 January 2016 Today I booted and the screen resolution was 640x480, and when I opened setting=> display there were two problems: only available setting was 640x480I was unable to drag the dialog box fully into the display area I wiggled the cables, rebooted, it was still the same. I booted a live CD, the resolution was 1024x768 Then I reverted to an earlier kernel ( latest I have is 4.2.0-27) Code: $ uname -a Linux dell-t1500 4.2.0-25-generic #30-Ubuntu SMP Mon Jan 18 12:31:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux And all is well. Can anyone tell me how to determine what specifically changed? Can I find and fix the problem? My thanks in advance,

  • Issue#59413: Unity - Windows Universal 10 Screen orientation issue

    I am using Unity 5.3.2p1 and visual studio 2015 community. I have selected in Unity in the player settings Portrait or Portrait Upside down AND default orientation = auto rotation. In Visual Studio 2015 package.appxmanifest it also is selected as Portrait and portrait flipped. However my game on a Dell Windows tablet shows in landscape mode. (Not desirable at all) Is this a bug? Is there a workaround to force portrait?

  • Issue#61698: Unity - Can't change color on GUI.Window

    I have come accross a very strange issue. I am making a lot of windows in order to connect them as nodes. Code (CSharp): GUI.Window(i, windowRect, DrawWindow, title) Some of these windows had assigned difference colors through GUI.Color. Everything was working fine until some day ALL the windows were gray (uncolored). I am not sure what caused this since everything else including labels in the windows are getting the correct color. Everything except the window itself. Even setting... Can't change color on GUI.Window

  • Issue#87015: Unity - Change GUI.Label position using variables in new Rect

    I have a window that generates a list of items. The items are available randomly, so not every item needs to be listed. I set up a GUI.Label to print the items and set a variable (rowItem) that is added to at the end of each row. Code (CSharp): if (wine [0, 1] > 0) {     GUI.Label (new Rect (75, rowItem + 10, 150, 30), wine [0,1].ToString() + " bottles" );     rowItem = rowItem + 20; } However, when I run the game, no text is shown. If I substitute a number for the variable, it all... Change GUI.Label position using variables in new Rect

  • Issue#98673: EA - Unravel Screen Resolution change

    How to change the screen resolution in Unravel without launching the game?My monitor somehow does not see the resolution of Unravel and I dont know how to change it.

  • Issue#152343: Unity - I have an problem with the Screen.resolution

    Hi all! I have the following problem, I'm trying to get all the resolutions supported by the monitor (which I think is with Screen.resolutions) in order to generate the various options in the menu of the game and the player can change the resolution you want. Put the code that comes in the documentation to prove ... Code (CSharp): using UnityEngine; using System.Collections;   public class ExampleClass : MonoBehaviour {     void Start() {         Resolution[] resolutions = Screen.resolutions;... I have an problem with the Screen.resolution

  • Issue#160908: screen resolution issue

    Hi My notebook has 1280x800 resolution and connected to fhd TV I can't set kodi resolution to 1920x1080 - the value ismissing Is there a way to specify the resolution in a setting file? Thanks

  • Issue#168914: Unity - How do you get a label in a GUI function to change its text?

    I have a label that displays the amount of gold the player has in his inventory, but can't get the label to change the number written in it as the amount of gold the player has changes... What do I do?

  • Issue#169434: Unity - Universal game screen resolution help!

    I started creating a game that is intended to be played on portrait mode for mobile devices and tablets. I added GameObjects to the borders of what the screen size would be, so the player cannot go outside the screen bounds. The problem comes when running on devices with different aspect ratios. Since I placed my "wall" objects manually on the editor to match the border of the camera, these won't move if the camera ratio changes, so the walls will either be too far from the screen... Universal game screen resolution help!

  • Issue#172302: Unity - Failed to reduce screen resolution on Lumia 950 phone by code

    Hello, Within my game, I am trying to reduce the native screen resolution of my Lumia 950 (Windows Phone 10) from 2560x1440 to 1920x1080 (Unity 5.3.1) with the following code: if (Application.platform == RuntimePlatform.WSAPlayerARM) { Screen.SetResolution (1920, 1080, true); } The code results in strange display behavior (one of the button Icons fills the entire screen) and then the screen resolution jumps back to native 2560x1440. I am compiling with Windows Store/Phone 8.1. Any... Failed to reduce screen resolution on Lumia 950 phone by code

  • Issue#191021: Geforce - New build - screen resolution/recognition issue

    Hi people, Long time reader first time poster. I've just completed my first build, specs as follows: Rampage V 5960X 32GB Dominator ddr4 512GB Samung 950 SSD 3 X Titan X gpu's Heaps of cooling 3 X Sony Bravia 49" 4K LCD's Windows 10 The problem I'm having is when 1 or 2 displays are connected 4K resolution can be selected on both. When the 3rd is connected this locked to 1080P. Now, when I select 1080P for all 3 one of the displays is super zoomed in and when I attempt use SLI or surround the resolution is obviously 5760x1080 plus mega zoomed in. Putrid to say the least. I've tried all combinations of monitor plug-ins from the hardware page, re-install drivers and GeForce experience, enabled and disabled SLI and surround but to no avail. I'm hoping someone may point me in the right direction as I'm totally lost. Thanks in advance....

  • Issue#193328: Unity - Change only camera resolution and keep UI at native resolution

    The problem is, that Screen.SetResolution changes the whole screen. On Android it becomes a huge problem, as my smaller UI elements are unreadable. A good example would be GTA (Android). Wheneve you change it the UI remains at native resolution. So, is there any way to do it in 4.x? For performance reasons i cant go to 5.x .

  • Issue#217498: Unity - [Paid] In Need of Programmer to Fix Black Screen (Camera Background) Issue on Build and Run

    Hi, my team has been stuck with this issue for over 3 weeks and we can not figure out the issue. If you press the play button in the editor, the game starts correctly at the main menu. But, if you build and run the scene, all it shows is the Unity splash screen and then the screen goes black and never loads. Could anyone please assist with this issue? I am willing to pay to have this issue fixed. Contact: [email protected] Thank you

  • Issue#256183: Unity IAP Loading Screen Issue

    I recently implemented Unity IAP using unity 5.3.2P3 and everything worked fine. I then created an animated loading screen (usual rotating ring), on which I called a SetActive(true) every time the user tried to make a purchase. I then set this loadingScreen to SetActive(false) in the purchase completion method (PurchaseProcessingResult()) or the purchase fail method (OnPurchaseFailure()). A simple activation and deactivation of this GameObject so that the user knows something is happening... Unity IAP Loading Screen Issue

  • Issue#259767: Unity - Screen resolution

    Different screen resolutions ruins how the game looks and the camera is out of place. How can I fix this?

  • Issue#264132: Unity - Issue with Skin Mesh Renderer Position change on Play

    Hello to all! I have a very weird issue with Skin Mesh Renderer. The backstory: I have game-objects with LOD Groups. Some of them, are flags and tents, so for the LOD 0, I add a Skin Mesh Renderer with a Cloth Modifier, paint constrains, and tweak the values in order for the fabric to react. I have used it without any issue so far in 2 different props, placed many times in the scene. Today I tried, with the same process, to make a 3rd prop (LOD 0 has a skinned mesh renderer and cloth... Issue with Skin Mesh Renderer Position change on Play

  • Issue#281993: HP - change screen resolution to 1920x1080

    Hi, my notebook (g7 2243us) screen resolution is 1600x900. How to change it to 1920x1080 or higher? The video adapter is AMD Radeon HD 7640G which can support 2500x2000 ThanksFuxiang

  • Issue#309686: How to Change Unity screen size on Windows 10 Build

    Hello, In windows 10 they added a full functional window resize for windows store apps. My game content is designed for aspect ratio less then 16/9 and larger then 4/3. How can i set Unity Screen size when window scaled to unsupported values? Screen.SetResolution does not work on Windows. And when I tried to change the SwapChainPanel width and height it worked, but then, when i changed window size, unity input was disabled, i was unable to click anything. How can i solve this problem?

  • Issue#325828: Unity - How to avoid screen flicker when calling Screen.SetResolution on Android

    Hi, all Users can change screen resolution by menu in our game. We call Screen.SetResolution in script, and all the ugui on screen will flicker accordingly( resize ) and then restore to normal. I searched the unity reference document and know Screen.SetResolution will take effect on next frame but it doesn't help. And I also find some solution like this: "https://github.com/zhukunqian/unity_scale_resolution", I haven't try it, because it seems that this method will hack... How to avoid screen flicker when calling Screen.SetResolution on Android

  • Issue#360174: Unity - AdMob Show & Hide Banner Upon Screen Change - Calling another function from another script

    Hi - I have my AdMobs script which places the banners, which places the ads just fine. I'm trying to hide them when the scene changes & then unhide them on another scene change. Essentially, each scene change has a bit of script that I'm trying to tuck a call to a function in the main AdMobs script, to hide/unhide. The problem is, it doesn't seem to be working. Here is my AdMobs Script: Code (CSharp): using UnityEngine; using System.Collections; using GoogleMobileAds; using... AdMob Show & Hide Banner Upon Screen Change - Calling another function from another script

  • Issue#371542: Unity - Blood Damage GUI Issue

    First off, I'm not sure if this is the correct forum to post this question. I'm currently using the Third Person Controller from Opsive. I'm having an issue trying to integrate this asset from the store. https://www.assetstore.unity3d.com/en/#!/content/38246 I have imported the asset to my project and added the script (component) to my character and when I enter the scene I get this warning. null texture passed to GUI.DrawTexture

  • Issue#392363: Unity - How to make the camera show the same no matter the screen size/resolution

    Hello all, I have a beginner's question for you I'm making a board game (3D) and I have a little problem with the camera. I have a rectangular board made of square tiles. The user cannot move or rotate the camera. Inside the Unity Editor, I have setup the camera to face down toward the board with a little angle to make as if the player was sitting in front of it (the board looks like your keyboard when you look at it from your desk chair). When I try on a device (tablet and phones),... How to make the camera show the same no matter the screen size/resolution