- Home /
Camera do not work as a prefab
Hi! I'm doing a 3D multiplayer game in unity. But in order for the game to be multiplayer, the player needs to be a prefab. And the camera must be a prefab too (otherwise it cant be assigned to my movement script). But the problem is that i am using Cinemachine and when i make the camera a prefab, you cant assign the "Cinemachine brain" to it, so the game wont work. Thanks if answering!
you should be able to reference the camera whether it's a prefab or not.. Actually your error might be that you are referencing the prefab and not the instantiated camera. Can you post your code?
@logicandchaos The problem is that when I try to drag the camera from the hierarchy to my player prefabs camera component, it does not work.
And when i then try to make my camera a prefab to make it work, the Cinemachine transform isn't there and you cant assign a new transform (as you can see on the picture).