sorry if it's a bit off-topic as it may not be code-related, but I'm facing a weird issue.
Everything is fine in the editor, but when I build my application as standalone, I have the windows loading cursor that "load" infinitely. It's happening as soon as the app is running, even on the main menu when no script are running.
What could be causing this ? I've no clue on how I could find the problem (like see what scripts are currently running for instance). It's not causing any issue, but it's just weird to see the loading cursor.
I'm also facing a weird aspect ratio (only in my computer, it may be related to the fact that I've two screen that don't use the same aspect ratio 16:9 and 16:10) but on the player settings, I've only set 16:9 as supported.
Here's my player settings :
I've tried "Default is native resolution" as well as checking more supported aspect ratio, nothing seems to fix this glitch.
Thanks !
Not sure what happened when building application. Check if editor scripts of any plugin do stuff.
It may because PlayerPref has saved the resolution setting.
try PlayerPrefs.SetInt("Screenmanager Resolution Use Native", 1);
or forced change resolution Screen.SetResolution(1920, 1080, true);
Related
I am making a custom Unity Editor GUI window and I just want it to stay and the exact center of the screen. Surprisingly, this is harder than I thought it would be on Macs.
This is my code:
....
windowRect.center = new Rect(0, 0, Screen.currentResolution.width, Screen.currentResolution.height).center;
....
The problem is, on a 5K iMac, which has a native resolution of 5120*2880, by default the macOS uses HiDPI to scale everything to 2560*1440. In Unity, Screen.currentResolution returns 5120*2880 without considering HiDPI scaling, but I need that sweet scaled resolution.
I've tried other functions as well. Display.main.systemWidth returns 1920 instead of 5120 or 2560.
Is there a way to do this? Or am I just out of luck? I am using Unity 2018.1.9f1.
Also, if there is a way to get the size of the whole Unity Editor Window(not the game window), I would be fine with it. Thanks in advance!
In Editor, Screen.currentResolution show the resolution of game window. You can enable Maximize On Play to use the maximized window resolution.
And if you deploy to MacOS app, it should be the 5K resolution correctly.
This in an old thread, but in case someone is still wondering, I found out that the highest resolution returned by Screen.resolutions on a retina device is the « magic » resolution. It’s the one that you see in the device settings as « Looks like X x Y ».
This is not mentioned in the doc as far as I could see, so I am not certain in can be relied upon in the long run, but it’s the case currently with Unity 2018.3.
Not quite the same as centre of the screen, but I was having a similar issue and solved it using:
EditorGUIUtility.GetMainWindowPosition().center;
I'm new to augmented reality, and I'm using vuforia 4.2.3 and unity 5, I followed all the steps trying to make a test run and whenever the camera detects the target the whole screen turn white, I've tried many thing but none of them worked, can someone help me?
I had a problem that sounds similar.
There is a known bug that causes white screen, could be related to that? See here for more info.
What worked for me was to change the VideoBackground.shader code, as described on that thread.
Go to Project>>Qualcomm Augmented reality>>Shaders
Double-click VideoBackground. This opens up Mono.
In the code, change where it says:
"queue"="geometry-11"
to this:
"queue"="Geometry"
Save, rebuild etc.
Worked for me.
I'm working on an app that includes a custom camera application on Glass. I want to be able to hard-set different camera parameters, but I'm having difficulty figuring out which ones I actually have access to.
I tried calling parameters.flatten() and got a whole bunch of options that I thought I would be able to use, but when I tried testing them, nothing happened. (For example, when I tried setting the color effect to sepia, the result was still in normal color). Is there any documentation or code I can look at that will tell me which parameter options I actually have?
There are a few open issues on our issue tracker about camera parameters that do not behave as expected:
Issue 302: GDK: Camera effects not registered or take affect
Issue 303: GDK: Request: Additional camera focus modes (with auto focus)
Issue 304: GDK: Camera scene mode does not register or take affect
You may want to follow those so that you can be updated as the GDK evolves.
unfortunately i have some problems with my new notebook and javafx development.
Whenever i use a webview to display content in my program i'm getting really small and nearly unreadable fonts - now i'm not sure what exactly the problem is:
Is it the new Win8.1 environment which is extremly bad for javaFX (+webView) development, or
Is it the new notebook with 1920x1080 resolution on an 13" display which is way to much for a small screen, or
Is it only a matter of configuration and i've overseen some basics :-)
i would really appreciate every possible suggestion
thanks :)
p.s.: I'm using JDK7 and NetBean 7.4 - i also tried JDK8 but that didn't change anything?!
Apply the WebView fontScaleProperty to scale the text displayed in the WebView.
If you think it's an issue (e.g. the fontScaleProperty should default to some better value for your particular configuration), you might want to also take a screenshot (maybe even a digital photo of the laptop screen), and log an issue in the JavaFX issue tracker.
I entered Safe Mode on an XP box (yeah, I know, it's OLD but it still works fine) and after it came out of it, the display is now blurry / fuzzy - across the entire display. From the icons on the desktop, to the font on Netscape, everything is now rendered in some kind of low resolution font that makes it unreadable.
I tried to get it to upgrade the display device driver, but it reported that it is 'up to date'.
This is just so strange .. I mean, why should going into safe mode result in an unusable computer?
Has anyone ever experienced something like this?
Ok, I guess I will have to probably scrap this box. I'm feeling down. But, this is not the way it should come to an end.
TIA !!
DOn
When you enter in Safe Mode, low resolution video is activated, but doesn't change anything IN the hardware, your video card might be damaged, usually weird colors and crappy random images are a memory error common problem, the buffer to show the image, is corrupted.