2D Toolkit Forum

2D Toolkit => Support => Topic started by: DemiGoth on January 27, 2014, 06:31:28 am

Title: 'Reading' actual display size
Post by: DemiGoth on January 27, 2014, 06:31:28 am
Is there a way to read the actual display size? With my game getting ready for testing and porting to Android, I do need to move stuff (UI elements) along the display and knowing the actual size of the display would help greatly with it.
Title: Re: 'Reading' actual display size
Post by: unikronsoftware on January 27, 2014, 12:36:53 pm
If you're using the tk2dCamera, t2kdCamera.ScreenExtents gives you the extents of the camera. An example of using this information is in tk2dCameraAnchor.UpdateTransform.