Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
'Reading' actual display size
« previous
next »
Print
Pages: [
1
]
Author
Topic: 'Reading' actual display size (Read 4474 times)
DemiGoth
2D Toolkit
Newbie
Posts: 45
'Reading' actual display size
«
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.
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
Re: 'Reading' actual display size
«
Reply #1 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.
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
'Reading' actual display size