2D Toolkit Forum

2D Toolkit => Support => Topic started by: JReanne on February 25, 2014, 08:16:44 pm

Title: tk2dCamera Fit Width
Post by: JReanne on February 25, 2014, 08:16:44 pm
Hello,
I'm working on getting camera overrides set up to support a variety of aspect ratios.  I'm having a little bit of trouble getting them to all work properly - how exactly does "Fit Width" auto scale work?  How does it know what "width" it should be fitting?  The Fit Height seems to automatically work just fine, but when I set Fit Width it's cropping off about 10% of the right side of my playing field.  Any help here would be greatly appreciated.

Thank you!
-Jenna
Title: Re: tk2dCamera Fit Width
Post by: unikronsoftware on February 26, 2014, 11:00:15 am
The width scales based on the native resolution. Fit width means to take make sure the native resolution width fits the target resolution.
Title: Re: tk2dCamera Fit Width
Post by: JReanne on February 26, 2014, 02:59:53 pm
That makes perfect sense, I was thinking about it backwards.  Thank you!