반응형 UnityTechnique6 유니티 기기 사용하지 않고 디바이스 에뮬레이터 사용 방법 1.안드로이드 스튜디오를 설치합니다.https://developer.android.com/studio?hl=ko Android 스튜디오 및 앱 도구 다운로드 - Android 개발자 | Android Studio | Android DevelopersAndroid Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.developer.android.com이때 설치 경로를 원래 상태 그대로 지정하면 편합니다.2.안드로이드 스튜디오에서위에 Tools를 눌러 Device Manager를 켜줍니다+버튼을 눌러Creat.. 2024. 8. 3. VR 기기 없이 유니티 연동하기 집에 VR 기기가 없다고 VR테스트를 못한다고요 ??물론 VR기기보다는 아쉽지만 XR Interaction Toolkit으로 테스트가 가능하답니다.Project Setting -> XR Interaction Toolkit ->Use XR Device Simulator in scenes을 체크해주시면 됩니다 https://youtu.be/0_mSdo3GsfE?feature=sharedTab : Head Mounted Display -> Left Controller -> Right Controller순으로 Device input 변경 U:Head Mounted Display1) Mouse(Look) : 마우스 움직임으로 바라보는 방향을 컨트롤 합니다.2)W,S,A,D + Q,E(Movement) : 카메라.. 2024. 7. 29. 유니티 내부 NotificationSettings 사용방법 https://youtu.be/XjxRL7Ax9-I 2024. 7. 24. Vector3 using System.Collections; using System.Collections.Generic; using UnityEngine; struct MyVector { public float x; public float y; public float z; public float magnitude { get { return Mathf.Sqrt(x * x + y * y + z * z); } } public MyVector normalized { get { return new MyVector(x/magnitude,y/magnitude, z/magnitude); } } public MyVector(float x, float y, float z) { this.x = x; this.y = y; this.z = .. 2023. 7. 28. Singleton 패턴 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Managers : MonoBehaviour { static Managers s_instance;//유일성이 보장된다 public static Managers Instance { get { Init(); return s_instance; } } //유일한 매니저를 갖고온다 void Start() { //초기화 Init(); } void Update() { } static void Init() { if (s_instance == null) { GameObject go = GameObject.Find("@Managers"); if (go == n.. 2023. 7. 26. 코르틴(Coroutine)이란 -진입 지점이 여러개인 함수 -yield return 구문으로 반환 되고 다시 들어올 수 있음 유니티에서 사용되는 코르틴이란 IEnumerator 인터페이스 를 반환하는 함수 코르틴 실행과정 StartCoroutine → 이벤트 함수를 IEnumerator로 선언 → SendMessage로 코루틴 함수 호출 코루틴용 데이터 엔진이 수행하는 기능 yield return null 다음 프레임까지 대기 yield return new WaitForSeconds(float) 지정된 초 만큼 대기 yield return new WaitForFixedUpdate() 다음 물리 프레임까지 대기 yield return new WaitForEndOfFrame() 모든 랜더링 작업이 끝날 때까지 대기 yield return.. 2023. 6. 28. 이전 1 다음 반응형