Posted on

How to Update Unity Hub

Learn to Update Unity Hub

What is Unity Hub

Unity hub is a program launcher used for managing all of your unity projects and versions of the Unity editor. 

How to Update

Now there may be a time in the future that Unity hub will need updating. When this happens there will be a message down at the bottom of Unity hub that will read “Hub version number is available. To install the update you need to restart the Hub.” It will then have options to RESTART NOW or REMIND LATER. All you have to do is click the restart now button and when it reopens you will now have the new version.

Posted on

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.

Posted on

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.