총을 쏘거나 반동이 있는 액션을 개발하다 보면 카메라의 진동이 필요한 순간이 있다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraShake : MonoBehaviour { Vector3 Start_Pos; void Start() { Start_Pos = transform.localPosition; } public IEnumerator Shake(float duration,float magnitude) { float timer = 0; while (timer...
원문 링크 : Unity로 카메라 반동만들기 (camera shake)