Unity Tutorials and Solutions

How to change the CURSOR IMAGE on MOUSE HOVER over UI ELEMENTS in Unity

Intro­duc­tion In this arti­cle we are going to see how to change the cur­sor image when the point­er hov­ers over a but­ton in Uni­ty. In addi­tion, a down­load pack­age is pro­vid­ed with the scripts, sprites and the scene with all the ele­ments already con­fig­ured. Down­load the Uni­ty Pack­age Here you can down­load the Uni­ty Package …

How to change the CURSOR IMAGE on MOUSE HOVER over UI ELEMENTS in Uni­ty Read More »

How to exit the game in Unity with confirmation dialog

Descrip­tion This solu­tion con­sists of a scene with two but­tons, one with the text "Play" and the oth­er with "Exit", the first but­ton does noth­ing, the sec­ond one dis­plays a con­fir­ma­tion dia­log that asks us if we are sure we want to exit and has two but­tons, the NO but­ton and the YES but­ton, the …

How to exit the game in Uni­ty with con­fir­ma­tion dia­log Read More »

Unity, how to compile 32-bit and 64-bit App for Google Play — IL2CPP Error

Intro­duc­tion In this arti­cle we are going to see how to export from Uni­ty to Android and com­pile 32-bit and 64-bit ver­sions, nec­es­sary to be able to pub­lish a game or appli­ca­tion on Google Play. The fol­low­ing video is divid­ed in two parts, the first 5 min­utes are about how to con­fig­ure the Uni­ty engine …

Uni­ty, how to com­pile 32-bit and 64-bit App for Google Play — IL2CPP Error Read More »

What is a REFERENCE in programming

Intro­duc­tion One of the most impor­tant things we have to under­stand in object ori­ent­ed pro­gram­ming is the con­cept of "REFERENCE", know­ing what a ref­er­ence is and how to find it will allow us to manip­u­late any object, access its data and its pub­lic func­tions. In this arti­cle we will see the con­cept of Ref­er­ence in …

What is a REFERENCE in pro­gram­ming Read More »

Volume control system for music and sound effects for Unity

Intro­duc­tion This solu­tion for Uni­ty con­sists of a vol­ume con­trol sys­tem for music and sound effects, the idea is that in a con­fig­u­ra­tion win­dow the desired lev­els are adjust­ed, the sys­tem saves that infor­ma­tion and applies it to all the AudioSource com­po­nents that are reg­is­tered. To reg­is­ter an AudioSource com­po­nent in the sys­tem just assign …

Vol­ume con­trol sys­tem for music and sound effects for Uni­ty Read More »

Joystick Prefab to use in Unity — For Android and PC

Intro­duc­tion In this arti­cle we are going to see how this Android Joy­stick pre­fab for Uni­ty works and you can down­load the Uni­ty Pack­age to import and use in your project. In the fol­low­ing video I explain how this down­load­able joy­stick for Android works and how cre­ate a Script to read the touch inputs. Download …

Joy­stick Pre­fab to use in Uni­ty — For Android and PC Read More »

Teleport objects in Unity — Teleportation System to download and import

Intro­duc­tion In this arti­cle we are going to see a pro­to­type of a tele­por­ta­tion sys­tem for Uni­ty, which con­sists of a series of inter­con­nect­ed rings, when an object that has a Rigid­body com­po­nent assigned to it enters through a ring, it will exit through the des­ig­nat­ed exit ring, in the process its speed is conserved …

Tele­port objects in Uni­ty — Tele­por­ta­tion Sys­tem to down­load and import Read More »

How to create a "Don't Show this message again" window in Unity

Intro­duc­tion In this arti­cle we are going to see how to make in Uni­ty that a cer­tain action hap­pens until the user decides the oppo­site or that this action is only done the first time that the game is start­ed. In the fol­low­ing video you can see the expla­na­tion of how this pro­to­type works. How to …

How to cre­ate a "Don't Show this mes­sage again" win­dow in Uni­ty Read More »

Prototype for DETECTING OBJECTS entering a COLLIDER in Unity

Intro­duc­tion I made a sim­ple pro­to­type for Uni­ty to show how to detect when an object enters inside the col­lid­er of anoth­er object and exe­cute func­tions in that case. Down­load Uni­ty Pack­age Below you can down­load the Uni­ty pack­age that when import­ed into your engine, you will recov­er the Assets we use and you will …

Pro­to­type for DETECTING OBJECTS enter­ing a COLLIDER in Uni­ty Read More »

Character Selection Menu — Unity Package to Download

Intro­duc­tion In this arti­cle we see how to make a char­ac­ter selec­tion menu in Uni­ty, ana­lyz­ing a pro­to­type that imple­ments this sys­tem which con­sists in two scenes, the first one is like a main menu where you can switch char­ac­ters, the sec­ond scene is like a game scene where you can play with the character …

Char­ac­ter Selec­tion Menu — Uni­ty Pack­age to Down­load Read More »

How to GRADUALLY change a value in Unity

Intro­duc­tion In this arti­cle I will show you how to mod­i­fy vari­ables grad­u­al­ly over time, this has many appli­ca­tions, for exam­ple fade out the screen for a tran­si­tion effect, grad­u­al­ly low­er the vol­ume in Uni­ty, grad­u­al­ly change from one col­or to anoth­er, among many oth­er appli­ca­tions. ABOUT THIS VIDEO In this video we see how to …

How to GRADUALLY change a val­ue in Uni­ty Read More »

Fade In — Fade Out Effect for Unity — Download Package

Intro­duc­tion In this arti­cle we see a solu­tion to fade out the screen in Uni­ty, which you can down­load, import and drag into the Can­vas of your Uni­ty project to use it.This solu­tion is high­ly cus­tomiz­able and you can also use images to per­form the fade in/fade out effect. ABOUT THIS VIDEO In this video we …

Fade In — Fade Out Effect for Uni­ty — Down­load Pack­age Read More »

How to make TRANSPARENT MATERIAL in Unity

Intro­duc­tion In this arti­cle we see how to cre­ate a trans­par­ent mate­r­i­al in Uni­ty that allows you to see what is behind, a mate­r­i­al that can be applied to win­dows and oth­er trans­par­ent objects such as glass­es or bot­tles. We also see how to use an image with alpha to apply trans­paren­cy accord­ing to the …

How to make TRANSPARENT MATERIAL in Uni­ty Read More »

Indicator Bar for Unity — Example: Health Bar

Intro­duc­tion I have cre­at­ed a new Asset for Uni­ty, it is a bar indi­ca­tor for the Can­vas. This asset will serve to show val­ues in rela­tion to a min­i­mum and max­i­mum val­ue, for exam­ple you can make a health bar, strength bar and mag­ic bar, a progress bar, etc. I have added sev­er­al para­me­ters and …

Indi­ca­tor Bar for Uni­ty — Exam­ple: Health Bar Read More »

Scroll to Top
Secured By miniOrange