Unity20 [Unity] 페이드 인/아웃 (iTween) [Unity] 페이드 인/아웃 (iTween) iTween 사용방법 / Easing 종류 public class CItweenTest : MonoBehaviour { private float _FadeSpeed = 2.0f; public Image _FadeObjWindow; // Use this for initialization void Start () { FadeOutWindow(); } // Update is called once per frame void Update () { } public void FadeOutUpdate(float fAlpha) { Color color; color.r = _FadeObjWindow.color.r; color.g = _FadeObjWindow.color.g; .. 2020. 9. 11. [Unity] Changing Ortho Cam Size according to resolution Changing Ortho Cam Size according to resolution Ortho 카메라 크기를 해상도에 맞춰 바꾸기 public class CameraManager : MonoBehaviour { public float horizontalResolution = 1920; void OnGUI () { float currentAspect = (float) Screen.width / (float) Screen.height; Camera.main.orthographicSize = horizontalResolution / currentAspect / 200; } } 2020. 9. 1. 이전 1 2 3 4 다음