unity 3d student

Beginner B04 – Destroying Objects


How to remove objects from scenes using the Destroy command.

Code Used

//Simple Destroy Command in Start Function
  1.  
  2. function Start () {
  3.  Destroy(gameObject.Find("Box"), 3);
  4. }

Further Reading

Share via Social Media

  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites

18 Comments