This script is made for you if you need a touch pad feature in your Unity game or app. Let’s say you want to rotate an object left or right by clicking and dragging the screen to the same direction (left or right), then this...

Source Codes & Coding Tutorials
This script is made for you if you need a touch pad feature in your Unity game or app. Let’s say you want to rotate an object left or right by clicking and dragging the screen to the same direction (left or right), then this...
In many cases we need an ability to do Mouse Orbit in our Unity Game. Mouse Orbit means by moving your mouse you are orbiting a specific object to view it in different angles. I’ve found this script from this link: https://wiki.unity3d.com/index.php/MouseOrbitImproved By default, without...
This tutorial is about simple and easy HTTP POST and GET request from Unity. Watch this video to see how it works: First, take a look this php program, you can test sending POST and GET request directly from web browser if you are running...
When building a Unity program for web (WebGL), mostly we need to access methods/functions inside Unity from JavaScript (browser scripting). This example is showing how it can be done. In this example I’m showing how to call JavaScript alert from Unity and then send back...
I’ve searched for this thing recently on internet and I found a way to set a texture image from URL to a game object in Unity3d. Here is the script, you can attach this script to your GameObject, but don’t worry to specify your desired...
Sometimes we need to create some dummy crowd cars that move from a point to another points to fill up the scene with fake traffic system. This script, which I call it WP Patrol is able to move any object, let’s say a car, to...
Sometimes when our camera moves, it goes inside an object like wall, tree or any other object. How to prevent that? This is very simple solution, you can try it wit a few mouse clicks. The solution is to add a collider and rigid body...
Hi, previously I’ve made a tutorial about how a camera can follow an object smoothly in Unity. That tutorial was in this link: https://www.youtube.com/watch?v=3QbHSlC5a3o But seems some have problem, they said camera movement is shaky and laggy. So, here is another tutorial, this time I...
In this tutorial I will show you how to crate a day and night cycle in Unity just by animating the direct light and using it as the sun. You will also see how to create dynamic lights that can be switched on on night...
In this tutorial you will see how to easily create a moving locomotive and wagons along the spline track in Unity3D.
How to create pause and resume button for our Unity games? It’s easy. In this video tutorial I will show you how to set up the Pause and Resume UI.
I’ve made a step by step video tutorial to create a basic menu and navigation script in Unity3D. So basically you can see the Main Menu with two buttons to navigate to its sub menus, and in each sub menus you have a back button...
I’ve created a simple C# script for Unity game that allows you to create a patrolling enemy around multiple waypoints (check points). It will start patrolling from the nearest / closest waypoint available around the patrolling object, then it continues to check the next waypoint...
In this video I’m showing how to add a virtual joystick in your Unity by importing this package called MyJoystick. See how to use this package in this video and have fun. Here is the link to download the package, it’s from my Google Drive:...
When you make a game, you often need to make enemies that move towards the player. In this video I’ll share some method to move an enemy object towards the player in Unity3D. Watch this video to see how to do it by creating a...
Instead of animating texture itself, we can animate the coordinate of the texture by script in Unity3D. In this video tutorial I’ll show you how we can animate a texture in Unity3D. Here is the script I used in the video:
I am building an EelectronJS app and successfully release it as an executable Windows program. But the problem is when the app is already running, if I double-click again that .exe file, the second window of this app is running, but buggy. I don’t want...
Hi, in this video I’ll share with you some useful C# script for your Unity3D game camera so your camera can follow the player’s movements smoothly. Watch this video:
Let’s say you have three cameras in your Unity3D scene. So how do you switch between them? In this video I will show you how to do that.
In order to make our Unity game connected to the online world, it must be able to send requests to and get responses from our server. In this tutorial you will see the basic way to make our game able to communicate to PHP server...