Search Unity

*** Instantiate Prefab Replacement Script

Discussion in 'Scripting' started by jorn818, Nov 22, 2014.

  1. jorn818

    jorn818

    Joined:
    May 12, 2013
    Posts:
    100
    I want to replace a cube to a building on runtime with instantiate prefabs, It has to be on the location of the cube

    How do I do this
     
  2. Rutenis

    Rutenis

    Joined:
    Aug 7, 2013
    Posts:
    297
    Get cubes position and use it to instantiate the object at its position, its as simple as that. You could show us your script tho.