Unity在按下播放按钮后如何添加淡出的淡出过渡?

发布于 2025-02-13 12:15:13 字数 310 浏览 1 评论 0原文

我想在击中我创建的“播放”按钮后,将场景过渡。当前,当您按下播放按钮时,它将过渡到下一个游戏场景。我想在过渡期间实现淡出。

play按钮场景过渡

我已经制作了淡出的动画剪辑。

淡淡的动画剪辑

I want to make my scene transition with a fade after hitting the "play" button I created. Currently when you hit the play button it transitions to the next game scene. I want to implement a fade during the transition.

Play Button Scene Transition

I already made the fade animation clip.

Fade Animation clip

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素年丶 2025-02-20 12:15:14

也许您可以在动画完成后,不再致电LoadScene,而是可以运行淡出的动画并加载下一个场景,然后在下一个场景加载时播放淡入淡出的动画。

Instead of calling LoadScene immediately, perhaps you could run a fade-out animation and Load the next scene after the animation has finished, then play a fade-in animation when the next scene loads.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文