유니티 instantiate(dynamic duplication) scaling 문제
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GameObject copiedInstance = Instantiate (firstBullet); | |
// Don't | |
copiedInstance.transform.parent = container.transform; | |
// Do | |
copiedInstance.transform.SetParent (container.transform, false); |
Reference
- Why is Instantiated object's scale changing?: http://answers.unity3d.com/answers/868902/view.html
댓글
댓글 쓰기