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...

Source Codes & Coding Tutorials
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...
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...
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...
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...
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...
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...
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:
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...
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...
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...
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...
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...
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
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...
I think the only way to make an Asset Bundle in Unity is by using script, this one is taken from Unity official tutorial. Have a folder named Editor in your Assets folder, and make this script inside it: Name the file CreateAssetBundles.cs And then,...
Make an empty object on your scene and attach this script to it: Don’t forget to specify your correct url to the asset bundle you want to reach and the name of object you need. Watch this video demonstration to see more:
Hello guys! Watch this series of my videos to see how we can make Unity login, logout and register easily: And here are the code I wrote: First, config.php file Then the index.php backend file And the last file is UnityLoginLogoutRegister.cs file In case you...
As usual, I work on Unity on my Windows PC, then build the Xcode project files from my pc. This time the project files are so big so I tried to zip them. But zipping process didn’t go until the end, before completely zipping the...
This error happened to me when I was trying to export my Unity project. Then it solved after checking my build settings, and I spotted a deleted scene on my build settings with empty text and check mark. I removed that unwanted scene from build...
In this video below I’m showing how to make a car controller script and how to use it in order to make a movable vehicle in Unity from scratch. This is the script used in this video: If you are interested to get the entire...