Unity/기초9 Localization public void UserLocalization(int index) { LocalizationSettings.SelectedLocale = LocalizationSettings.AvailableLocales.Locales[index]; } index = 언어인덱스 public LocalizeStringEvent localizeStringEvent; localizeStringEvent.StringReference.TableEntryReference = "Key" 스크립트로 StringTable 안에 key 값을 string으로 넣어서 바꾸기 public LocalizeStringEvent localizeStringEvent; localizeStringEvent.StringReference.TableRe.. 2024. 3. 3. Coroutine WaitForFixedUpdate(): 다음 FixedUpdate 물리 프레임 전까지 일시 중지 WaitForSecondsRealtime(5): 크기 조정되지 않은 시간을 사용하여 지정된 시간(초) 동안 코루틴 실행을 일시 중지 WaitForSeconds(5): 조정된 시간을 사용하여 지정된 시간(초) 동안 코루틴 실행을 일시 중지 WaitForEndOfFrame(): 모든 렌더링 작업이 끝날 때까지 일시 중지 null: 다음 프레임까지 대기 StartCoroutine(코루틴): 코루틴을 연결하고 코루틴이 완료될 때까지 일시 중지 // Coroutine 재사용 최적화 IEnumerator MyCoroutine; // Wait 재사용 최적화 readonly WaitForFixedUpdate Coroutin.. 2024. 2. 8. Layer, SoftLayer, Tag 01. Layer 레이어는 32개까지 가능 ( int는 4byte / 1byte는 8bit / 0또는 1이 총 8개 / 4바이트라면? 32개) // 9 번 레이어 int mask 1 2024. 2. 8. List, Dictionary 01. List List 변수이름 = new(); .Remove(데이터) / 삭제 .RemoveAt(0) / 0번째 데이터 삭제 .Clear() / 리스트 초기화 .Insert(0, 데이터) / 0번째에 데이터 넣기 List 가능 List list = new(){1, 2, 3}; // 20보다 큰 첫번째 요소를 반환한다. int result = list.Find(item => item > 20); // result == 0 int result = list.Find(item => item > 1); // result == 2 // 20보다 큰 첫번째 요소를 반환한다. var result = list.FindAll(item => item > 20); // result == empty var result = .. 2024. 2. 8. 이전 1 2 3 다음