使用打印机打印Unity3D游戏统计信息 [英] Using a printer to print Unity3D Game statistics

查看:204
本文介绍了使用打印机打印Unity3D游戏统计信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于一个博物馆,我们正在制作一系列不同的迷你游戏和一个主游戏,它们将迷你游戏的结果用作资源.当游客离开博物馆时,他应该能够打印出其游戏行为的摘要,主要是统计数据.

For a museum we're producing a collection of different minigames and a maingame, that uses the results of the minigames as a resource. When the visitor exits the museum, he should be able to print a summary of his game actions, mainly in form of statistics.

该工作站应该可以在其中打印此文档,该工作站正在运行Unity3D应用程序.统计信息包含文本以及彩色的图形元素(饼图).

The station, where he should be able to print this, is running an Unity3D application. The statistic contains text as well as graphical elements (pie charts) that is colored.

是否可以从Unity3D应用程序中打印此类信息?还是我应该专注于其他解决方案?

Is there a way to print such informations from within a Unity3D Application? Or should I focus on another solution?

推荐答案

虽然Unity3D无法直接处理打印,但是您可以:

While Unity3D doesn't handle printing directly, you can either:

  • Write your own C# printing algorithm or use an existing one.
  • Write your own Unity Plugin or use an existing one.

如果只需要支持Windows,则最好将文本保存到文件(.txt,.pdf等)中,然后使用.NET Framework进行打印.

If you need to support only Windows, you'll probably be better off by just saving the text to a file (.txt, .pdf, etc.) and then have it printed using the .NET Framework.

这篇关于使用打印机打印Unity3D游戏统计信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆