Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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.