- Home /
Question by
Captain Panic · May 11, 2013 at 10:56 PM ·
instantiatejavascripting
How Do You Select Prefabs or Instantiated Objects with the left Mouse Button?
I now know how to select game objects with the left mouse button but does anyone know how to select instantiated objects with the left mouse button? So for example if I wanted to instantiate 10 cubes into a scene but still wanted to be able to select them each individually how could this be done? Also by select I mean that the game object have some form of response to being clicked on. Also I am using java currently.
Comment
Do you mean select them in the Scene view while running the game or select them in the game?
Answer by DaveA · May 11, 2013 at 10:57 PM
After instantiating each one, assign it a unique name. when you detect the click, access the namem
yes I also want to know that how to assign name to instantiated object?