# parent 대입 경고
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.
UnityEngine.Transform:set_parent (UnityEngine.Transform)
Clone.transform.parent = gameObject.transform; -> Clone.transform.SetParent(gameObject.transform);
'Unity > Activities' 카테고리의 다른 글
[유니티] 오브젝트 생성 원점 설정 (0) | 2024.04.08 |
---|---|
[유니티] 업데이트 순서 (0) | 2024.04.08 |
[유니티] UI/ IPointer (0) | 2024.04.08 |
[유니티] 싱글톤 (0) | 2024.04.08 |
[유니티] Json 사용/ 파일입출력 (1) | 2024.04.08 |