Unique Identifier only unique if you drag prefabs in, not by copy paste

I don’t normally drag in prefabs like that while making scenes, I copy paste from a previous prefab. Example: Enemy, copy paste to get Enemy(1), problem is that with this method the unique identifier does not work. Or am I doing something wrong?

At this point, we haven’t introduced a fix for this (we will in a later lecture). Right now, the Update checks for IsNullOrEmpty and assigns a GUID, the problem is when we copy and paste (or Cntrl-D]uplicate), the UUID is already populated so Update skips replacing it. That will get fixed with a global lookup in a few lectures.

Privacy & Terms