Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

generatng objects

Discussion in 'Scripting' started by Cav, Oct 1, 2006.

  1. Cav


    Aug 2, 2006
    hi, looking for some advice/help on generating objects...i have a series of objects (imported from blender), at various points i need to generate one of the objects and assume control of it for a period of time. on a basic scale, think tetris, where a series of shapes are is generated, you control it untill it hits the bottom and then you take control of the next generated object.

    im just trying to get my head around the way to generate the objects and the bet way to do this..

  2. Eric5h5


    Volunteer Moderator Moderator

    Jul 19, 2006
    You want to use Instantiate...see this and this. For the control, you'd have a script attached to some object (probablly an empty would be fine) that does the instantiating, then gets input and applies that to the instantiated object. It would run in a loop, so that when one object stops, it instantiates another, etc.