아래와 같은 경고가 나왔을땐
RectTransform에서는 UI 스케일링 이슈가 있으므로 SetParent를 사용하라는 것 같다.
transform.parent 가 아닌 transform.SetParent를 사용하면 경고는 사라진다.
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
'Unity' 카테고리의 다른 글
메카님 Any State - Can Transition To Self 기능 (1) | 2016.07.11 |
---|---|
오디오 클립 속성 (0) | 2016.03.12 |
파티클시스템(Particle System) (0) | 2016.03.02 |
게임에셋(그래픽) 찾기 사이트 (0) | 2016.02.29 |
TextMesh로 outline Text 표시 (1) | 2016.02.24 |