简体   繁体   English

如何在 unity 3d 中为您的游戏添加运动模糊效果?

[英]How to add motion blur effect to your game in unity 3d?

I am making a game in unity and I want to add motion blur visual effect.我正在统一制作游戏,我想添加运动模糊视觉效果。 Which components are required to do that and is any scripting required?需要哪些组件来执行此操作,是否需要任何脚本? If yes, can anyone give an idea?如果是的话,任何人都可以给出一个想法吗? Also, I need to know how to toggle it through UI.另外,我需要知道如何通过 UI 切换它。

Go to your package manager in unity, add Post-Processing. Go 统一到您的 package 管理器,添加后处理。 After that create a new post processing profile in the assets and add motionblur to that.之后在资产中创建一个新的后期处理配置文件并为其添加运动模糊。 Create a post processing volume in ur scene, set it to global and select the posyprocessing profile.在你的场景中创建一个后处理卷,将其设置为 global 和 select posyprocessing 配置文件。 Finally place a post processing layer on your camera and set the layermask to everything.最后在您的相机上放置一个后期处理层并将图层蒙版设置为所有内容。

[Unity Post-Processing Documentation] https://docs.unity3d.com/560/Documentation/Manual/PostProcessing-Stack-SetUp.html 【Unity后处理文档】 https://docs.unity3d.com/560/Documentation/Manual/PostProcessing-Stack-SetUp.ZFC35FDC70D5FC69D269883A822C7A53

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM