Notice
Recent Posts
Recent Comments
Link
반응형
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 26 |
27 | 28 | 29 | 30 |
Tags
- 유니티
- removeAll
- 디지털트윈
- 티스토리챌린지
- raycast
- sparkmain(clone)
- 행동트리
- dropdown
- articulation body
- unity korea
- sparkmain(clone) 무한생성
- unity sparkmain(clone)
- 너비탐색
- readonly
- 유니티 sparkmain(clone)
- navisworks api
- Unity
- 크루스칼
- Simulation
- 드롭다운
- 트리구조
- 오블완
- list clear
- 최단거리 알고리즘
- 최소신장트리 mst
- BFS
- GetComponent
- 깊이탐색
- dfs
- C#
Archives
- Today
- Total
목록드롭다운 (1)
낑깡의 게임 프로그래밍 도전기
Unity C# Dropdown GetComponent 활용하기
Unity 드롭다운이 요즘에는 TextMeshPro로 나오기 때문에 GetComponent를 적고 자동완선으로 나오는 Dopdown을 선택해서 불러와도 null이 뜬다 우선 해당 스크립트에 네이스페이를 추가using UnityEngine.UI; using TMPro; 그리고 TMP_Dropdown 타입으로 변수 선언 그후에 GetComponentdropDown = GetComponent(); 을 해주면 원하는 작업을 할 수 있다. 간단한 코드 예시using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;using TMPro;public class DropDownManager :..
카테고리 없음
2024. 7. 3. 11:34