In case you are building a game that need a speed controller UI such as a Slider in Unity, this example may be useful to you. In this example, first I tried to show you how to basically work with Unity Slider and how to get it’s value that ranges between 0 to 1. Then…
Category: Unity
How to make your in game mini map in Unity
Hello guys, in this post I’m going to share some of my videos about how to make mini map in your game in Unity. Part #1 In this video I’m showing my progress on making a mini map for my car driving simulator game. In this first part of my videos you will see how…
Basic Unity Touch Screen Arrows Car Controller Free Asset – Unity Package
Are you making car driving game for mobile devices? This free Unity asset will help you to make simple car controller and touch screen UI for your car. This car controller provides you 4 arrow buttons: forward, backward, left and right. It also has brake button. Please note that you will need to place your…
Unity Pickable Object C# Script
I was making a simple script for picking and putting down an object by getting close to a pick up and drop zone area in a game. In this game my player object is a pick up car. And I tried to make a sphere as pickable object. In both this videos you will see…
How to add an engine sound to a car with respect to its speed in Unity
I made a pickup car with its wheel colliders and completely working. I can controll it to move by pressing arrow keys on my keyboard. The next thing I need to do is to add engine sound audio file to the car with respect to its movement speed. So when the car is running fast…
Flashlight On and Off Unity C# Script
This simple script can be used for switching on and off a flashlight in Unity. Add the spotlight on your flashlight to the reference slot in the script. Here is the script: Watch the video to see how to use this script: You can purchase the complete files as Unity Package here: https://creativeshop.ciihuy.com/product/on-off-switchable-flashlight-unity-package/
Unity Camera Toggler C# Script
Are you working with more than one camera in your game? You can work with any amount of cameras and you can switch between them easily using this very simple C# script, I call it Unity Camera Toggler. Here is it: In this script I use array variable of cameras, so no matter how much…
How to add touch screen steering wheel to your car/vehicle in Unity
In this tutorial I’m going to integrate the Touch Screen steering wheel that I already shared with you on my previous tutorial: https://www.youtube.com/watch?v=izeneTqhDC8 , to a car object. This car object of course has wheel collider and rigged properly. So if you did not watch my previous tutorials about how to make your own car…
Unity Touch Screen Steering Wheel Tutorial
I found a forum thread about Unity Touch Screen Steering Wheel, which you can see the link at the bottom of this post; there are two versions of script, I used the C# version here. First of all, on your Unity project, create a script named SteeringWheel. Then paste this script inside it: NOTE: Whenever…
How to load a video file from a url and play it in Unity
This script can help you to load a video file stored somewhere on internet. So by accessing its link, you can load and play it in Unity. This method can be useful to make minimal installation file size of your program, you don’t have to embed your video but you can ask your user to…
How to use equirectangular image in Unity to look around in 360 mode?
First, you need a shader file. Here is a shader code you can use to make shader file called InsideVisible: Then make a material, use your equirectangular panorama image in it. Then drag and drop the shader file to this material. Import a high poly sphere object (for best result) to Unity scene, apply the…
Simple Unity Example to add, move, rotate and remove objects dynamically
In this Unity example project, you can have a Unity scene with some basic UIs to add a predefined objects stored on Resources folder to the scene, then click and drag the object to position it anywhere, rotate it left and right, and you can also remove it. There are two cameras in this example…
How to add a text at the center of HTML page
So many times I need to make an element, for example an image element, that appears exactly at the center of an HTML page. I did it, and here I share the code:
Click The Floor To Move – C# Script for your Unity games
I’ve made some simple script for easy floor click navigation system. Yeah, I don’t know how to name it properly, I just named it “Click the floor to move”. Basically the idea is when you click any area of the ground/floor, you can go to that area smoothly. I will show you this video so…
How to make a Unity WebGL page appears full screen?
I’m sure you tried to export your Unity game to a WebGL version to publish it online. But it does not appear full screen. Well, you can replace your index.html code with this, but do it at your own risk: And, hey, don’t forget you need to change this “Build/WebBuild.json” according your project. In my…
How to make texture chooser system in Unity
This is a demo scene of a Unity project that demonstrates how we can make a texture changing system. You can click one of those two objects inside the scene to show a texture changer interface, then you can select available textures to change the texture of that selected object. The source is available for…
How to make automatic sliding door in Unity
I want to make an automatic sliding door in Unity. The idea is, there will be a door with a sensor area. If a player inside that sensor area, the door will open, and if the player left, the door closes. To make this thing happened in Unity, I need to make a sensor script…
Switching between Zoom In intro camera to the Main Camera in our Unity Game
Let’s say we have two cameras in our Unity game. First one is a camera that zooms in towards a player object at the beginning of the game, and the second one is the main camera. This tutorial will be about how to make a switch between those two cameras very easy. Here you can…
How to make a very simple Cutscene for your game in Unity
Let’s say you are building a race game, and you want to make a cutscene as transition between main menu and the race game itself, this video demonstrates how to make a such simple cutscene. Here I share the project file: https://drive.google.com/file/d/16Rp7opdnwe0iByu-GkL9Cj3ynDigq2Pi/view?usp=sharing
How to load texture from web on run time in Unity and apply it to an object
I have an idea to store texture files on web (on server) and then we allow users to load any textures available on web to apply to an object in Unity. So I experimented with this script: I placed a cube to the scene, also an input field and a button. By entering texture url…