**播放器** 设置窗口(菜单:**编辑 > 项目设置 > 播放器**)包含确定 Unity 如何构建和显示最终应用程序的设置。您可以使用PlayerSettings API 控制此窗口中可用的大多数设置。
**播放器设置** 在您已安装的平台模块之间有所不同。每个平台都有自己的播放器设置,您需要为要构建的每个版本的应用程序设置这些设置。要在这两个设置之间导航,请点击带有平台操作系统图标的选项卡。
但是,有些常规设置是所有平台共享的,您只需要设置一次。
属性 | 功能 |
---|---|
公司名称 | 输入您公司的名称。Unity 使用此名称来查找首选项文件。 |
产品名称 | 输入应用程序运行时在菜单栏中显示的名称。Unity 还使用此名称来查找首选项文件。 |
版本 | 输入应用程序的版本号。 |
默认图标 | 选择要作为每个平台上应用程序的默认图标使用的 Texture 2D 文件。您可以为特定平台覆盖此设置。 |
默认光标 | 选择要作为每个受支持平台上应用程序的默认光标使用的 Texture 2D 文件。 |
光标热点 | 设置从默认光标左上角到光标热点的像素计算机图像中最小的单位。像素大小取决于您的屏幕分辨率。像素照明在每个屏幕像素处计算。 更多信息 请参阅术语表偏移值。光标热点是光标图像中 Unity 用于根据光标位置触发事件的点。 |
特定于平台的设置分为以下部分
您可以在平台自己的手册部分中找到有关特定于各个平台的设置的信息
您可以在各自的文档中找到封闭平台包括需要保密性和与平台提供商签订法律协议才能使用其开发工具和硬件的平台。除非您与提供商建立了既定关系,否则这些平台不开放开发。例如 PlayStation®、Xbox® 的 Game Core 和 Nintendo®。
请参阅术语表 播放器设置的详细信息。
PlayerSettings
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.