本页面列出了从早期版本的 Unity 升级到 2018.2 版时可能对现有项目造成影响的更改 *
UIElements.ContextualMenu
菜单操作回调现在接受 ContextualMenu.MenuAction
参数而不是 EventBase
参数。
ContextualMenu.InsertSeparator
接受一个额外的 string
参数。
此功能在 Unity 5.1 中已弃用,现已删除。在 Unity 2018.2 版的项目中不能再使用此功能。
请参阅多玩家和联网部分以了解与 Unity 网络功能相关的更多信息。
具有实际透明度时,Photoshop 会调整像素颜色以将像素颜色与哑光(背景)颜色混合。在我们的如何准备 Alpha 通道文档中介绍了正确准备 Alpha 通道的过程。
可以忽略此文档中介绍的扩张,重要的是文档中指出,您会希望拥有包含单独 Alpha 通道/遮罩的“不透明”图像(而不是拥有透明度)。Unity 以前会调整颜色来“移除”哑光,但从 2018.2 版开始已经停止了此功能。如果您的 PSD 具有透明度,则可能会开始看到边缘的白色。要解决此问题,请参阅上面的手册链接,并创建一个实际的 Alpha 通道(而不是透明度)。
有关 2018.2 版新增功能的详细信息以及更详细的升级说明,请参阅 2018.2 发行说明。
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.