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 |
Tags
- readonly
- 드롭다운
- 깊이탐색
- 크루스칼
- removeAll
- C#
- dfs
- list clear
- sparkmain(clone)
- 최단거리 알고리즘
- 최소신장트리 mst
- unity sparkmain(clone)
- GetComponent
- 유니티 sparkmain(clone)
- articulation body
- 습관형성 #직장인자기계발 #오공완
- 티스토리챌린지
- dropdown
- raycast
- 너비탐색
- 디지털트윈
- unity korea
- 트리구조
- 행동트리
- 오블완
- sparkmain(clone) 무한생성
- Unity
- 유니티
- navisworks api
- Simulation
Archives
- Today
- Total
목록GetComponent (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 :..
Unity C#
2024. 7. 3. 11:34