Hello Guest

Author Topic: NativeScreenExtents And ScreenExtents  (Read 4858 times)

Bigcheese

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 19
    • View Profile
NativeScreenExtents And ScreenExtents
« on: April 27, 2014, 10:24:03 am »
Both NativeScreenExtents and ScreenExtents return the same value with override set to wildcard and autoscale set to Fit Visible.
Am I missing something or should the screen extents for my native resolution (e.g 2048X1536) be different than the extents for (e.g 1280 X 720) ?

Thanks

Bigcheese

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: NativeScreenExtents And ScreenExtents
« Reply #1 on: April 27, 2014, 10:54:42 am »
Update!

Using the following working fine.
Rect nativeScreenExtents = tk2dCamera.Instance.NativeScreenExtents;
Rect currentScreenExtents = tk2dCamera.Instance.ScreenExtents;

However using this returns the same extents.
Rect nativeScreenExtents = Camera.allCameras[0].GetComponent<tk2dCamera>().NativeScreenExtents;
Rect currentScreenExtents = Camera.allCameras[0].GetComponent<tk2dCamera>().ScreenExtents;

Which is fine since it works. but I'm curious to why this should be the case.
Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: NativeScreenExtents And ScreenExtents
« Reply #2 on: April 27, 2014, 06:46:55 pm »
Hmm... thats strange. Is tk2dCamera.Instance == Camera.allCameras[0]?