2D Toolkit Forum
2D Toolkit => Support => Topic started by: Bigcheese 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
-
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.
-
Hmm... thats strange. Is tk2dCamera.Instance == Camera.allCameras[0]?