Posted on

Debugging Unity 2020 – Collab Not Working

How to Make Collab Work

If you update to a 2020 version of Unity you may run into a problem where the Unity callable is not working. This error occurs when you were using collab in an old version and then update to the latest 2020 version. Unity has made some big changes to the collab system and so when you update to the latest version you also need to update the unity collab package version in the package manager window. this problem will display several errors in your console window which will prevent you from playing your game. to fix this error go to the services window and click on . this will open a new window for all the collab settings. It is here as well that you can the latest collab package version. once update the error will be gone and you be able to play your project again.

Posted on

Debugging Unity – Missing UI Scripts in Unity Package.

For this lesson, we will show you how to debug a problem that can occur when you import a unity package that was developed in a newer version of Unity than you are currently using. The problem is that you might be missing all the UI component script from the objects in your package. If this is the case then there are two options for fixing this problem. You can either go back through each object in the package and replace the UI components or the better option, just update your project to the new compatible version of Unity.

Posted on

Random Range Not Working in Unity

If you are ever trying to get a random number between 0 and 1 in Unity and end up only ever getting 0 then this might be your problem and solution. One thing you might not know about Random Range function in Unity is that the second parameter needs be plus one greater than the top number you wish to have for random pick when using ints.

The reason for this is that the Random Range function normally uses float and like when you case afloat into an int, whatever decimal numbers you have will be removed never rounding up.