Hello Guest

Author Topic: Camera ResolutionOverride AutoscaleMode option  (Read 3379 times)

asdasd

  • Newbie
  • *
  • Posts: 2
    • View Profile
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;

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Camera ResolutionOverride AutoscaleMode option
« Reply #1 on: November 22, 2013, 10:51:38 pm »
Added to the list. thanks.