How to save and load a VECTOR2 and VECTOR3 with PlayerPrefs in Unity
PlayerPrefs doesn’t have a former method to save vectors, but with creativity we can use PlayerPrefs to store Vector2 and Vector3 data.
Here is how to do it.
PlayerPrefs doesn’t have a former method to save vectors, but with creativity we can use PlayerPrefs to store Vector2 and Vector3 data.
Here is how to do it.
Introduction In this article we are going to see how to change the cursor image when the pointer hovers over a button in Unity. In addition, a download package is provided with the scripts, sprites and the scene with all the elements already configured. Download the Unity Package Here you can download the Unity Package …
How to change the CURSOR IMAGE on MOUSE HOVER over UI ELEMENTS in Unity Read More »
Description This solution consists of a scene with two buttons, one with the text “Play” and the other with “Exit”, the first button does nothing, the second one displays a confirmation dialog that asks us if we are sure we want to exit and has two buttons, the NO button and the YES button, the …
How to exit the game in Unity with confirmation dialog Read More »
Introduction In this article we are going to see how to export from Unity to Android and compile 32-bit and 64-bit versions, necessary to be able to publish a game or application on Google Play. The following video is divided in two parts, the first 5 minutes are about how to configure the Unity engine …
Unity, how to compile 32-bit and 64-bit App for Google Play – IL2CPP Error Read More »
Introduction One of the most important things we have to understand in object oriented programming is the concept of “REFERENCE”, knowing what a reference is and how to find it will allow us to manipulate any object, access its data and its public functions. In this article we will see the concept of Reference in …
Introduction This solution for Unity consists of a volume control system for music and sound effects, the idea is that in a configuration window the desired levels are adjusted, the system saves that information and applies it to all the AudioSource components that are registered. To register an AudioSource component in the system just assign …
Volume control system for music and sound effects for Unity Read More »
Introduction In this article we are going to see how this Android Joystick prefab for Unity works and you can download the Unity Package to import and use in your project. Download Joystick Prefab for Android Below you can download a Unity package to import in your project, inside the package you will find all …
Joystick Prefab to use in Unity – For Android and PC Read More »
Introduction In this article we are going to see a prototype of a teleportation system for Unity, which consists of a series of interconnected rings, when an object that has a Rigidbody component assigned to it enters through a ring, it will exit through the designated exit ring, in the process its speed is conserved …
Teleport objects in Unity – Teleportation System to download and import Read More »
Introduction This time we are going to see a solution that I made in Unity, that allows us to show a message to the user with the “Don’t show again” option, if the user check that option, the message will no longer appear. Download the Unity Package to import in your project Below you can …
How to create a “Don’t Show this message again” window in Unity Read More »
Introduction I made a simple prototype for Unity to show how to detect when an object enters inside the collider of another object and execute functions in that case. Download Unity Package Below you can download the Unity package that when imported into your engine, you will recover the Assets we use and you will …
Prototype for DETECTING OBJECTS entering a COLLIDER in Unity Read More »
Introduction In this article we see how to make a character selection menu in Unity, analyzing a prototype that implements this system which consists in two scenes, the first one is like a main menu where you can switch characters, the second scene is like a game scene where you can play with the character …
Character Selection Menu – Unity Package to Download Read More »
Introduction In this article I will show you how to modify variables gradually over time, this has many applications, for example fade out the screen for a transition effect, gradually lower the volume in Unity, gradually change from one color to another, among many other applications. In the following video we see how to Gradually …
Introduction In this article we see a solution to fade out the screen in Unity, which you can download, import and drag into the Canvas of your Unity project to use it.This solution is highly customizable and you can also use images to perform the fade in/fade out effect. Download this solution Below you can …
Fade In – Fade Out Effect for Unity – Download Package Read More »
Introduction In this article we see how to create a transparent material in Unity that allows you to see what is behind, a material that can be applied to windows and other transparent objects such as glasses or bottles. We also see how to use an image with alpha to apply transparency according to the …
Introduction I have created a new Asset for Unity, it is a bar indicator for the Canvas. This asset will serve to show values in relation to a minimum and maximum value, for example you can make a health bar, strength bar and magic bar, a progress bar, etc. I have added several parameters and …