Unity实现震屏效果(屏幕抖动)

     经过设置相机的Viewport Rect 来实现,将下面的脚本挂在相机上,设置enabled=true就可实现屏幕震动效果。dom using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShakeCamera : MonoBehaviour { publ
相关文章
相关标签/搜索