Quantcast
Channel: Answers for "How can I instantiate something as a child"
Browsing all 4 articles
Browse latest 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

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 all 4 articles
Browse latest View live




Latest Images