Uncategorized
Unity3D: How to make one GameObject transform a child of another
In Unity3D, you can create parent-child relationships in code as easily as you can create the heirarchies in the Unity3D editor.
All you need to do is set the child GameObject’s transform.parent property to the transform you want as the parent.
GameObject child = …
GameObject parent = …
child.transform.parent = parent;
Registered for GDC09
We are registered for GDC09. Hope to see you all there!
Also, if you use Twitter, I’m going to keep minor and day-to-day project updates there:
Search this Site
Follow me on Twitter
- Great cause, awesome games, pay what you want. RT @Wolfire: pay what you want for five awesome indie games http://bit.ly/9KASXz
- Thinking about writing a series on how to use #Lidgren with #Unity3d. I wrote an intro just to dip my toe in the water: http://bit.ly/drfJZs
- Tweaked the @bakedon web site a bit with a different template I customized slightly. What do you think? http://bit.ly/amEwRD
- Bwahahaha! It works! Need a demo...
- Powered byWordPress Twitter Widget Pro
Archives
- April 2010 (1)
- March 2010 (1)
- February 2010 (1)
- January 2010 (2)
- September 2009 (1)
- December 2008 (1)
- July 2008 (2)
- March 2008 (1)
- February 2008 (1)
- November 2007 (1)
- October 2007 (1)
