[ad_1]
So I’ve this downside the place I attempt to instantiate prefabs as in this video for instance. I can take instantiate one prefab to the scene, but when I attempt to instantiate a second one to the scene (whether or not it is with the identical prefab or a distinct one), as a substitute of making an occasion of the second prefab, it brings the primary occasion I had created to my mouse and I’m in place to maneuver it by dragging it round.
The solely work round I’ve for this thus far is to drop into the hierarchy as a substitute of the scene (which works wonderful), however I’ve to rigorously keep away from the scene whereas dragging and dropping, in any other case the above-described challenge occurs immediately.
Am I doing one thing fallacious, or is that this a bug of some type?
EDIT : I managed to breed the error in a constant method. I do not know why it occurs, nevertheless it does each time. It would not contain code and it is vitally easy to breed (a minimum of for me, maybe not for you should you’re not doing the fallacious factor that I do…).
I created a brand new challenge. I created a dice and a sphere. I turned them each into prefabs and deleted the unique cases (they’ve the .prefab extension in my folder, so I’m positive). I drag-dropped the dice in, works wonderful. I drag the sphere in, and it seems as a dice which I’ve to place (by releasing the clicking), and my preliminary prefab occasion of the dice is gone.
[ad_2]