启动画面播放器设置的接口。
animationBackgroundZoom | 到达 SplashScreen 动画的总持续时间时,背景的目标缩放度(从 0 到 1)。仅在 animationMode 为 AnimationMode.Custom 时使用。 |
animationLogoZoom | 到达徽标动画的总持续时间时,徽标的目标缩放度(从 0 到 1)。仅在 animationMode 为 AnimationMode.Custom 时使用。 |
animationMode | 在启动画面过程中应用的动画类型。 |
background | 在横向模式中显示的背景 Sprite。如果 backgroundPortrait 为 null,也会在纵向模式中显示。 |
backgroundColor | 如果未分配背景 Sprite,则为显示的背景颜色。默认颜色为深蓝 RGB(34.44,54)。 |
backgroundPortrait | 在纵向模式中显示的背景精灵。 |
drawMode | 确定应如何绘制 Unity 徽标(如果已启用)。如果 [logos] 中不存在 Unity 徽标,则绘制模式默认为 DrawMode.UnityLogoBelow。 |
logos | 在启动画面过程中显示的一系列徽标。将以升序绘制徽标,从索引 0 开始,然后为 1,以此类推。 |
overlayOpacity | 为了提高背景和徽标之间的对比度,应用了覆盖颜色修改器。覆盖不透明度是指此效果的强度。注意:将此值降到 0.5 以下需要 Plus/Pro 许可。 |
show | 将此属性设置为 true 可在启动应用程序时显示启动画面,设置为 false 则禁用启动画面。注意:禁用启动画面需要 Plus/Pro 许可。 |
showUnityLogo | 将此属性设置为 true 可在启动画面过程中显示 Unity 徽标,设置为 false 则禁用 Unity 徽标。注意:禁用 Unity 徽标需要 Plus/Pro 许可。 |
unityLogoStyle | 要在启动画面过程中用于 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.