[英]Get screen height and width in cosmos C#
我如何获得 C# Cosmos 中的屏幕高度和宽度?
我正在制作操作系统和 GUI,我需要欢迎文本的中心点。
像:
int centerX = SCREENWIDTH / 2;
// and
int centerY = SCREENHEIGHT / 2;
// Would get the center
获取列: canvas.Mode.Columns
。 获取行: canvas.Mode.Rows
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.