If Unity can’t contact the license server, you can’t activate your license using the Unity Hub or the command line. Typical reasons for failing to connect to the license server include: you don’t have access to the internet; your firewall or proxy settings are blocking the connection; or the Unity license servers are down. For more information, see Activation issues.
当在线激活失败时,您可以尝试在您的机器上手动激活 Unity。您仍然需要访问一台已接入互联网的计算机,但这台计算机不必是要尝试激活 Unity 的计算机。
要手动激活您的 Unity 许可证,请按照以下流程操作:
.alf
) from the command line. For example, Unity_v2021.1.0a7.alf
..alf
文件从 Unity 的许可证服务器请求一个 Unity 许可证文件 (.ulf
)。.ulf
file to activate your license in Unity from the command line..alf
)在 macOS 上,在 Terminal 中输入以下内容(将 <editor-installation-location>
替换为实际安装位置,例如 /Applications/Unity/Unity.app/Contents/MacOS/Unity
):
<editor-installation-location> -batchmode -createManualActivationFile -logfile
在 Windows 上,在命令提示符中输入以下内容(将 <editor-installation-location>
替换为实际安装位置,例如 C:\Program Files\Unity\Editor\Unity.exe
):
"<editor-installation-location>" -batchmode -createManualActivationFile -logfile
现在您可以请求 Unity 许可证 (.ulf
) 文件。
.ulf
) 文件生成许可证激活 (.alf
) 文件后,下一步是从许可证服务器请求您的 Unity 许可证 (.ulf
) 文件:
打开 license.unity3d.com/manual 网页。
如果出现提示,请登录您的 Unity ID。这是请求 Unity 许可证文件的必要步骤。
将出现 Manual activation 网页。
选择 Browse 按钮找到您已使用系统的文件浏览器生成的许可证激活 (.alf
) 文件。
如果上传成功并且 Unity 检测到您选择的文件是许可证激活文件,则文件名会出现在带有绿色复选标记的文本框中。但如果看到红色的 X,请重试。
选择 Next 按钮。将出现 Activate your license 网页。
选择您要激活的许可证类型:
PS/SC/E3-XXXX-XXXX-XXXX-XXXX
。选择 Next 按钮。将出现 Download license file 网页。
选择 Download license file 按钮。
如果出现系统提示,请允许 license.unity3d.com/manual 网页的下载。
打开浏览器的下载位置并查找带有 .ulf
扩展名的新 Unity 许可证文件。
Now you are ready to activate your Unity license from the command line.
在 macOS 上,在 Terminal 中输入以下内容(将 <editor-installation-location>
替换为实际安装位置,例如 /Applications/Unity/Unity.app/Contents/MacOS/Unity
):
<editor-installation-location> -batchmode -manualLicenseFile <yourulffile> -logfile
在 Windows 上,在命令提示符中输入以下内容(将 <editor-installation-location>
替换为实际安装位置,例如 C:\Program Files\Unity\Editor\Unity.exe
):
"<editor-installation-location>" -batchmode -manualLicenseFile <yourulffile> -logfile
如果 Unity 显示许可证激活不成功的错误消息,请查看激活问题为您的问题找到解决方案。
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.