I am developing a game for Android by Unity. I have a scene consisting of a map as you can see from the screenshot of Unity Editor. When i play in the editor, the scene perfectly fits to the screen. However, when i run the game in my phone, there remains a vertical space out of the map and it doesn't completely fit.
I am using "Scale With Screen Size" and the reference size is my phone's size which is 1080 by 1920. I leave the screenshot of the editor and my phone during the play mode.
What might be the possible reason for this problem? Thanks in advance..
Screenshot from the editor
Screenshot from the Phone
Related
I am using Unity 2019.2 with its Vuforia plugin. My initial scene is just a menu without camera, from which AR scenes are loaded- These use regular Image Targets for 3D stuff as well as UIs in different screen spaces based on needs.
With the current configuration, the AR works normally under all Android devices and on two iPhones, 7 and 11, with the latest software updates. Only on the only iPad I can test on, an iPad Air 2 with the latest software updates, there is a strange bug I can find no answer to:
As soon as I load into a an AR scene from my main menu, instead of showing the camera view, it shows the splash screen again, frozen halfway through the default Dolly animation, or sometimes a black screen or weird pixelated markings (like something was extremely zoomed in). UIs that use "Screen Space - Overlay", or "Screen Space - Camera" with a non-AR camera, work fine, and the Image Targets are recognised just fine. But my 3D stuff that should be laid over the image targets just doesn't appear (it's there and active though, scripts that rely on them work). So I can say with confidence everything in the app works and the Splash Screen is just hiding my AR camera view.
I have tried to turn the Splash Screen off via script in one of the AR scenes, but that simply didn't do anything. Adding an AR or regular camera to the start menu made the whole app crash/not start up properly.
In the ARCamera, I have tried to make the Background transparent (didn't change anything) and adjusted clipping planes (neither). Turning off the Splash Screen in the Player Settings just turned the views black. Changing the Architecture to ARM64 didn't change anything, either. The XCode log doesn't say anything useful, either - the camera is working, Vuforia is working, everything is working just fine, there is just a Splash Screen in front of the iPad's camera that shouldn't be there, by all accounts.
Just started in Unity I'm trying to make a platform game. But having issues with aligning the bottom of the platforms with the bottom of the phone screen. Everything looks fine on the Scene windows but is not right on the Game window or on the phone.
Figured it out, i guess. it was the camera, I reset it and noticed the camera view was off so i was able to move it to fix it.
I have created a 2D project. The images I used for sprites are all with high resolution. However I do not know what settings I have changed today, the sprites in game window started look terrible when I tested the game(good quality in scene window). And this happens to all of the projects I created earlier. But when I build the exe file to play, the graphics look all good with original quality. Could anyone tell me how to fix this issue?
Scale back the game view to 1x and change the size of your camera instead or set your sprites to their original size if they have been resized
If you have a Retina screen, make sure you uncheck the following checkbox.
Watch this screencast
For 2D game also make sure Projection property in Camera component is set to Orthographic
When I start an app that the first scene contains too much data, after 3 seconds the Unity splash is like "frozen"... By this way, if I move my head to see any part of the VR world, all is black.
I can only see a rectangle area with the unity logo from the splash, but the remaining space is black.
I suppose that it occurs because all data of the scene are being loading, but, is there anyway to avoid this problem?
I'm using a Gear VR and a Samsung Galaxy S7 Edge.
Check this image to see that the user see if move their head after the splash is "frozen":
Thanks in advance.
Background
I am using Unity3D 5.3.5 to develop a Google VR (Cardboard) project
Introduction
I added a canvas button to my scene. It shows up in scene mode and sometimes in Game mode but never when I run the project
What I have tried
Turning off Direct Render for Main Camera
Setting up Render Mode of canvas to World Space
Adding Main Camera to Event Camera
Observations
Button shows up in Scene and Game Mode but not during Play mode
Though the UI does not show up, Physics Raycaster in the reticle hits the button.
Screenshots Below
This is a Unity bug. In the forums they mentioned it will be fixed in 5.3.5p5.
Its also noted in known issues for gvr:
Starting with 5.3.4p2, a bug in Unity prevents rendering World Space
uGUI Canvases into a RenderTexture
https://developers.google.com/vr/unity/release-notes#v080_initial_release
It works in older version(5.3.4f1), if you need to test it right now.
in your canvas change Render Mode to-> Screen Space Camera
change Render Camera to -> Your camera
change Plane Distance to a very low number but not negative