- Home /
Is there any difference if I duplicate a prefab in Hierarchy or drag it from Project tab?
I was wandering if it is different in any way. Thanks
Answer by duck · Apr 01, 2010 at 12:50 PM
There are small differences:
The main difference is that if you create a new prefab by dragging from the project tab, the prefab will be created with all it's script variable values at their original settings.
Whereas if you duplicate a instance of a prefab from your scene, and you have script variable values which have been changed in that instance (for example, the move speed of a character), then a duplicate of this existing instance will also take on those changed values, rather than the default prefab values.
Also if you have renamed the instance in your scene, any duplicates of this instance will take on the new name, rather than the original prefab name.
Your answer
Follow this Question
Related Questions
Need Help with Shooting Script c# 5 Answers
Possible Unity Glitch. A few lines of code erasing prefab data. 1 Answer
Does adding the same prefab to multiple objects duplicate the code? 1 Answer
How can you duplicate a prefab and sever all links to the original? 1 Answer
Instantiatied prefab runs script twice? 0 Answers