parent
-
[unity]C# Parent 사용 시 경고 메세지unity 2022. 7. 18. 16:23
chr_position.transform.Parent = this.transform; 위 내용을 입력 시 경고 메세지가 나온다.. 텍스트로 옮기면 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. 해석하면 RectTransform의 부모를 부모 속성으로..