[Solved] Unity 3D spawn 10 objects on mouseclick [closed]
[ad_1] To instantiate a prefab you can use Instantiate (as someone told you in a comment) https://docs.unity3d.com/ScriptReference/Object.Instantiate.html to do that 10 times use a simple for-loop: for(int i=0; i<10; ++i){ //code } so, putting all togheter the update functions can be: void Update () { if (Input.GetMouseButtonDown (“Fire1”)) { for (int i = 0; i … Read more