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
- RT @FGSummit: Here's your chance to win a FREE ticket to #FGS2012!!! Retweet for a chance to win!
- I just contacted Rep. Jay Inslee to oppose #SOPA/#PIPA - Join me! http://t.co/5x8XAhYY #wikipediablackout
- Tell Congress: Don’t censor the web! http://t.co/IzEmL336
- I just backed Guns of Icarus Online on @Kickstarter http://t.co/C1ImM8e7 The original game was great and this looks fantastic. @MuseGames
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)
