Copy of prefab behaves differently to original

Hi all,

This is probably a little difficult to diagnose but I’ll try my best to describe the problem.

I have created a prefab which contains my main character (a Third person walker). I need another copy of this prefab with some things changed so I duplicate the prefab to get another prefab

Now I expected when I made a duplicate of the Main Character prefab (“Main Character 1”) it should do exactly the same thing as Main Character. And it does for the most part however for some reason the camera movements are very choppy. When you move the camera it shakes a lot. The expected behaviour of the camera is that the character stays in the middle of the screen no matter how much you move the camera. The copy prefab introduces a slight delay to the movement so if you move the camera fast enough the character appears to be on the left of the screen

I’ve renamed the original prefab Main Character 2 and the copy prefab to Main Character - No go, name doesn’t matter

Some details about my prefab: It contains a main camera which uses a very slightly modified version of the Unity mouse orbit script.

Any idea as to why this might be happening?

And I’m assuming you don’t have both prefabs active at the same time, right?

No, of course not :slight_smile:

some more things I’ve checked:

All the tags are correctly tagged
All values are exactly the same

Sadly, I have no idea. If everything is the same, it should behave the same.

You could submit it as a bug, provide them with both prefabs.

Yeah I think it must be a bug.

Here’s another way to describe the camera problem:

It’s as if the camera is moving before the character is. This should not be the case as Character’s movements are in Update() while Camera movements are in LateUpdate()

Hmmmmm alright I seem to have fixed it. All I needed to do was remove the mouse orbit component and re-added it. Strange.