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 - asdasd

Pages: [1]
1
Support / Camera ResolutionOverride AutoscaleMode option
« on: November 22, 2013, 02:12:40 pm »
Could you please add the following option to Autoscale modes? Thanks.

Fill the camera view, but retain scale proportions.
The name is up to you. Possible names: Fill, FillVisible, CropToFill...

Code:
Code: [Select]
case tk2dCameraResolutionOverride.AutoScaleMode.Fill:
s = Mathf.Max(width / settings.nativeResolutionWidth,height / settings.nativeResolutionHeight);
scale.Set(s, s);
break;

Pages: [1]