Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Gooms9

Pages: [1]
1
Support / Dealing with pixel dimensions?
« on: January 27, 2012, 06:11:16 pm »
Hey, I was wondering how I can tell how large something is in pixels? I've got my sprite which is 1024x768. But it's width and height in unity are both 0.75. Do I have to perform these calculations myself, or is there a convenience method that I can make use of for getting and setting its pixel dimensions?

2
Support / Game View cropping top and bottom
« on: January 26, 2012, 09:42:59 pm »
First!

Sorry, couldn't resist :). I'm targeting the iPad landscape mode, so I've got my camera set up with ortho size of 1, and my sprite collection set up with a target size of 768 (iPad landscape height). When I place a sprite in my scene that is 1024x768, it gets cropped at the top and bottom in the game view. The texture looks fine when I run it on my iPad, but just in the game view it appears cropped at the top and bottom. Any ideas? If I make my cameras field of view exactly 1.2 (without changing my sprite collection back from 1) the game view appears correctly again. But I'm guessing it wouldn't look right on the iPad. I'm using orthographic. Can it be set up so that the camera looks correct in both game view, and on my iPad?

Thanks,


Pages: [1]