private void MakeGUIContent() { if (_icon != null) { if (_guiContent_Icon == null) { _guiContent_Icon = apGUIContentWrapper.Make(_icon); } else { _guiContent_Icon.SetImage(_icon); } //_guiContent_Icon = new GUIContent(_icon);//이전 } else { //_guiContent_Icon = null;//null로 만들진 않는다. _guiContent_Icon.SetVisible(false); } //이전 //if (!string.IsNullOrEmpty(_text)) //{ // _guiContent_Text = new GUIContent(" " + _text + " "); //} //else //{ // _guiContent_Text = new GUIContent(" <No Name> "); //} //변경 if (_guiContent_Text == null) { _guiContent_Text = new apGUIContentWrapper(); } if (!string.IsNullOrEmpty(_text)) { //공백(1) + 텍스트 + 공백(2) _guiContent_Text.ClearText(false); _guiContent_Text.AppendSpaceText(1, false); _guiContent_Text.AppendText(_text, false); _guiContent_Text.AppendSpaceText(2, true); } else { _guiContent_Text.SetText(NO_NAME); } RefreshPrevRender(); }