x


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

more ▼

asked Apr 01 '10 at 12:38 PM

alexnode gravatar image

alexnode
984 27 32 49

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Apr 01 '10 at 12:50 PM

duck gravatar image

duck ♦♦
41.4k 95 152 415

Thanks . So this is where it went wrong!!

Apr 01 '10 at 12:54 PM alexnode
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1286
x298
x63

asked: Apr 01 '10 at 12:38 PM

Seen: 1548 times

Last Updated: Apr 01 '10 at 12:38 PM