Quantcast
Channel: Answers for "How can I instantiate something as a child"
Browsing latest articles
Browse All 4 View Live

Answer by tanoshimi

Set the parent property of the transform: InstantiatedObject.transform.parent = ParentObject.transform;

View Article



Answer by sprezzatura

http://docs.unity3d.com/Manual/HOWTO-UICreateFromScripting.html Instantiating the UI element Prefabs of UI elements are instantiated as normal using the Instantiate method. **When setting the parent of...

View Article
Browsing latest articles
Browse All 4 View Live


Latest Images