小编mce*_*lik的帖子

在Unity中将消息从一个程序发送到另一个程序

我有两个不同的可执行文件在同一台运行Windows OS的计算机上运行.它们都是在Unity中构建的.我想在不使用网络的情况下将消息从一个发送到另一个.

如何从exe程序向Unity中的另一个exe程序发送消息?

这是可能的integrated Mono/.net functionality或其他什么?

c# unity-game-engine

6
推荐指数
1
解决办法
3510
查看次数

将 LLA 转换为 XYZ

你能帮我把 lla 转换成 xyz 坐标吗?

我在用

earthRadius = 6378.137;
var x = earthRadius * Math.cos(lat)*Math.cos(lon);
var y = earthRadius * Math.cos(lat)*Math.sin(lon);
var z = earthRadius * Math.sin(lat);
Run Code Online (Sandbox Code Playgroud)

此方法转换为 xyz 坐标。但它没有给出我想要的正确结果。地球被定义为 wgs84 对象。

wgs84 coordinates

5
推荐指数
1
解决办法
3万
查看次数

Qt从文件中删除一行

我正在用QTextStream阅读QFile.

QFile file("example.txt");
QTextStream in(&file);
QString line = in.readLine();
while (!line.isNull()) {
 if(line.contains("DELETE"))
 {
   // delete line
 }
 line = in.readLine();
}
Run Code Online (Sandbox Code Playgroud)

有没有办法删除一行?

c++ file-io qt

1
推荐指数
1
解决办法
8834
查看次数

标签 统计

c# ×1

c++ ×1

coordinates ×1

file-io ×1

qt ×1

unity-game-engine ×1

wgs84 ×1