문자열을 생성할 때 끝부분에 아래 문자열을 더하면 된다.
- "\r\n"
- System.Environment.NewLine
예제
string temp = null;
for(int i = 0; i < itemList.Count; ++i)
{
// 1번
temp += itemList[i] + "\r\n";
// 2번
temp += itemList[i] + System.Environment.NewLine;
}
Debug.Log(temp);
'Unity > Tip' 카테고리의 다른 글
Unity - 그림자가 안보일 때 (0) | 2020.04.07 |
---|---|
Unity - StackOverflowException: The requested operation caused a stack overflow (0) | 2020.04.02 |
Unity - 실시간 FPS 출력 (0) | 2020.03.27 |
Unity - RectTransform의 정확한 좌표 지정하기 (0) | 2020.03.25 |
Unity - Hierarchy에서 안보이는 GameObject 표시하기 (0) | 2020.03.20 |