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

How to set up an object so it is not instantiated

Discussion in 'Editor & General Support' started by hsparra, Aug 23, 2005.

  1. hsparra

    hsparra

    Joined:
    Jul 12, 2005
    Posts:
    750
    How do you set up an object so that it is not instantiated when the level loads?
    For example, in the Launch Projectile-Explosion sample, the Projectile and Explosion particle systems are greyed out and are created by the scripts. How do you set them up so they are greyed out?

    I have done this before, but I cannot seem to figure it out anymore.
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    In the inspector the first checkbox.
    This activates/deactivates the game object.
     
  3. freyr

    freyr

    Joined:
    Apr 7, 2005
    Posts:
    1,148
    ... but it's much easier to work with if you use prefabs instead of inactive game objects for things like bullets and missiles.
     
  4. hsparra

    hsparra

    Joined:
    Jul 12, 2005
    Posts:
    750
    <slapsHead/>That's right. Thanks for the reminder. Also, the Prefab thing sounds like a good idea. I will have to look into doing that :D