문자열을 생성할 때 끝부분에 아래 문자열을 더하면 된다.

 

  • "\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);

 

 

+ Recent posts