Change camera size depending on devices.
Hi guys, i'm new with Unity, i came from SpriteKit. How can i change the camera size depending on which devices i'm using? For example, i want the camera size increases a little if i run my game on an...
View ArticleAdjusting the Camera's Viewport Rect automatically upon aspect ratio change
I'm developing a game that has a basic GUI structure as below (for 16:9 aspect ratio. ![Layout Structure (when Aspect ratio is 16:9)][1] But when the aspect ratio changes (say becomes 16:10), the...
View ArticleFill screen with Unity WebGL while maintaining display ratio
I have created a Unity WebGL game, but want to be able to fill the browser window while maintaining a 16:9 height:width ratio. I know I can fill the ratio with this: But then it fails to maintain a...
View ArticleHow to adjust positions of the sprites to different screen factors?
Hi, I'm creating a 2D game with sprites located evenly on the bottom of the screen. Everything works fine until I test the game with different aspect ratios: the sprites are no longer spaced evenly...
View ArticleWhy Doesn't Unity App Fit Microsoft Surface Screen?
I have created a Unity 5.4 app for playback on a Microsoft Surface. The app is sized at 2736 x 1824 in Unity and on startup set to that size with "Windowed". When played on the surface, blue bars...
View ArticleOrientation Problem - Tablet vs Phone
My game is designed to work in 'landscape right' orientation - it involves a lot of tapping on the far right of the screen, so if it is in this orientation, the user does not accidentally press the...
View ArticleHow can I create a GameObject at the corner of screen
Unity is so difficult compared to delphi. In delphi you can just say: Rectangle1.Position.Y := 0; Rectangle1.Position.X := screen.Width - Rectangle1.Width; This will just change the position of the...
View ArticleVector move based on screen size
Hi! I have just started making a mobile game with Unity. This is my first foray into unity, so I'm very much learning as I go. Reckon I'll be here a lot. Anyway, with one of my UI elements,...
View ArticleGetting position of Game Window
Hi there, is there a way to get the location of the game window and probably the monitor resolution in game? I'm basically making a game where I want the player to sometimes drag the window around the...
View ArticleChange main camera size depending on screen size
So , when I change size of screen the main camera position size is 1 all the time and most of my gameojbects get cut of when I try to run game on smaller screen . Im making 2d game with one scene that...
View Articlescreen size
can somebody explain me how to make a box is the same size as your "monitor size". my first main menu: GUI.Box (new Rect (0, 0, Screen.width, Screen.height), "", "Main Menu Box"); the box is sized to...
View Article*SOLVED* How do I make the player jump at a fixed speed?
Hi, I am making a 2D game using the UI canvas system and I ran into a problem with the height the player jumps to, and the speed of the game overall. When I play the game in the editor on small screen,...
View ArticleHow do I edit in full screen
I can't seem to resize the screen I am working on. I have my images however I don't want to zoom I want to expand the screen and work on the details. My scale is 0.46 putting it higher will just zoom...
View Article2D snake game stop sprite from leaving screen
Hi, I've been stuck for weeks. I'm making a 2D classic snake mobile game in C#... but I can't stop the snake from leaving the screen! I've tried to create empty objects and use them as borders, but if...
View ArticleScreen Size and Brightness Settings at Runtime
Does anyone know how to achieve this kind of thing at runtime? (Runner2 ref vid): http://imgur.com/GMG8OsO I am kind of bumbling around in the dark (noob) trying to figure this out, so a nudge in the...
View ArticleView fits in landscape but not portrait ?! (Mobile)
When I test my game in landscape mode on my android phone, the camera fits perfectly on the screen, but when I switch to portrait the sides of the camera view are cut off. It seems that Unity matches...
View ArticleChange collider position depending of screen size?
Hello unity community! I have been trying to add a edge collider 2D to both borders of my camera, to prevent the player of leaving a certain area (camera is chasing the player). But when the screen...
View ArticleHow can I scale UI text per resolution?
I have text on a UI canvas and have the UI Scale mode set to scale with screen size. This scales all of the images in the UI perfectly. However, it does not scale any UI text. Why is this and how can I...
View ArticleItween working differently on different screen sizes (with text objects)
Hi When I use iTween at gameObjects, everything works fine on the PC and my phone. But when I use it at textObjects in canvas, the text is moving at different speeds depending on the screen size. How...
View ArticleSplit screen into grids
Hey guys, I'm making a mobile game, so one of my main concerns is having the game fit into any screen with the layout intact. I thought about doing so by splitting the screen into rows and columns and...
View Article