Hello Guest

Author Topic: previewing tk2dCamera resolution overrides  (Read 3889 times)

metronomic

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
previewing tk2dCamera resolution overrides
« on: March 11, 2013, 07:35:54 pm »
Am I correct in saying that there is no way to see how the tk2dCamera's resolution override settings will appear on the device while previewing the game in Unity?  In other words, is the only way to see how the resolution override settings affect the display on a device by actually running the game on the specific device?

I ask because it seems that no matter how I change the resolution override settings, the game still looks wrong in Unity's "Game" view when set to non-native resolutions.  By "wrong," I mean scaling artifacts on textures and incorrect aspect ratio.  (And I did make sure that my Unity window and Game pane was big enough that the non-native resolution could fully be displayed.)

Background: I'd read many, many threads about resolution and realizing that Pixel Perfect Fit was the override setting I needed (thanks unikron for adding this--I'd previously been using version 1.80, which didn't have that setting).  But I was still confused because the resolution override had no impact on the Game view.  It was not until I actually deployed the game to a device with a different resolution that I realized the setting worked.

Please clear up any misconceptions I might be having.  Thanks!

metronomic

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: previewing tk2dCamera resolution overrides
« Reply #1 on: March 11, 2013, 08:07:16 pm »
Hmm, I think I answered my own question.  Whenever I change the resolution in the Game view, I also have to change the tk2dCamera's forced resolution preset (in the tk2dCamera script properties under "Camera Resolution") to match.  Is that right?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: previewing tk2dCamera resolution overrides
« Reply #2 on: March 11, 2013, 09:44:03 pm »
That is correct.
The Unity viewport has no concept of "resolution" and as such there is no way to actually grab this automatically for tk2dCamera use.