Hierarchy에 숨겨져있는 GameObject를 나타나게 할 수 있다.
void Update()
{
GameObject[] obj = (GameObject[])GameObject.FindObjectsOfType(typeof(GameObject));
foreach (GameObject hidden_obj in obj)
hidden_obj.hideFlags = HideFlags.None;
}
'Unity > Tip' 카테고리의 다른 글
Unity - 그림자가 안보일 때 (0) | 2020.04.07 |
---|---|
Unity - StackOverflowException: The requested operation caused a stack overflow (0) | 2020.04.02 |
Unity - 문자열 개행, Enter, 줄바꿈 (0) | 2020.03.31 |
Unity - 실시간 FPS 출력 (0) | 2020.03.27 |
Unity - RectTransform의 정확한 좌표 지정하기 (0) | 2020.03.25 |