Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Inistintiating Objects

Discussion in 'Editor & General Support' started by slippyd, Jun 11, 2005.

  1. slippyd

    slippyd

    Joined:
    Jun 11, 2005
    Posts:
    129
    Quick question: I know how to instintiate an object from a script, but how does one make the object initially grayed out in the hierarchy so that you don't have to start with one copy of it sitting in your scene somewhere?
     
  2. NicholasFrancis

    NicholasFrancis

    Joined:
    Apr 8, 2005
    Posts:
    1,587
    To grey out the object, you switch it off using the check box at the very top left corner of the inspector.

    If you want to reuse the object and get it out of the scene (e.g. an explosion used in many game levels), you create a prefab from it... I'll put up a how-to for that one.
     
  3. slippyd

    slippyd

    Joined:
    Jun 11, 2005
    Posts:
    129
    I was comparing active to inactive objects and I totally missed the check box. Also, I think the documentation covers prefabbing pretty well, although I haven't read it too closely.