This is a quick and simple tutorial on how to fix an error that sometimes happens when using Photon. The error that we will talk about in this lesson says that the ‘Default Pool failed to load “Photon Prefab”. Make sure it’s in a “Resources” folder. Or use a custom IPunPrefabPool.’ This error is an error that occurs every once in a while when using Photon in your Unity project, even though there is nothing wrong with your project.
Category: Tips
Multiple Camera in your Unity Photon Multiplayer Games ft Eletrax
If you are ever building a multiplayer first-person shooter in Unity using the Photon plugin you might run into this problem. The problem we discuss is when you have more than one camera in your scene because there is a camera attached to each player object. This will cause the cameras to stack up on top of each other and the top or primary camera might not be your first-person camera which means while you are controlling your local player object you might not be viewing your player through their camera.
To fix this problem you need to disable the camera of each player object that is not your local player object. You will need to use the photon view component to check to see if the is mine variable is false. If it is then you will need to use a camera variable and set the enable variable to false. This will make it so you will only have one camera active in your multiplayer scene and that will be your local first-person camera.
Photon 2 Unassigned Reference Exception with Observed Components
This is a Debugging video for how to fix an Unassigned Reference Exception error when using an Observed Component in Unity with Photon. This is a very easy error to fix as It only takes switching one variable in the inspector. If you are receiving this error it is probably because you accidentally made one little mistake without realizing it.
To fix this error all you must do is look at all you Photon Prefabs and make sure that the Observe Option of the Photon View component is set to off or you have at least on observed component set. If the Observe option is turned on and you don’t have a component being observed then you will be receiving this error.