Based on some of my previous tutorials, I’ve created this very simple third person controller system that you can use for your games. With this system you can move your character by using virtual touch joystick and rotate around by dragging the screen left and right.
MyRotationTouchpad script for Unity3D
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 script may be useful to you.
How to click and drag to Mouse Orbit in Unity
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 clicking the screen you already orbiting your specific object. But…
Simple and easy PHP and Unity POST and GET http request tutorial
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 it on your localhost server.
Call JavaScript function from Unity and vice versa – Unity JavaScript Bridge
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 some string text to Unity Scene from web browser.
How to set a texture of a Game Object from URL in Unity3D
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 URL on the inspector.
How to use PDFJS to open pdf file in full screen and embedded in Iframe
In this video I demonstrate how to use PDFJS to open a full screen pdf file in a web browser and also how to embed a pdf file in an Iframe. By default PDFJS opens the pdf file from any url you specified in full screen. But we can use Iframe to open pdf file…
Creating crowd cars that move along given waypoints in Unity3D
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 any specific points (way points). But please note that this…
How to use Facebook Comments plugin dynamically in your PHP websites
This tutorial in this video showing you how to use Facebook Comments Plugin dynamically on each page of your website without adjusting it one by one on each page with the help of PHP.
How to prevent a camera from going inside any collision object in Unity3D
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 components to the camera. Watch this video to see how…
Another tutorial about Smooth Camera Follow in Unity
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 exported my scene and script as a Unity package, so…
Showing Previous and Next Tab Divs with JavaScript and jQuery
Here is another example and tutorial how we can do a show and hide previous and next HTML5 divs/tabs based on it’s id’s and classes… The idea is simple, we must store a value of a number of current tab that we are seeing right now in a variable, then by clicking next button we…
Generating random a mix of random letters and numbers in PHP
By calling str_shuffle method in PHP, we can generate a random mix of latters and numbers. For example, if we want to fill $bookid string variable with 10 letters and numbers (mixed of them), we can do it this way: And the result is this: nzm5gnde9i You can modify the content of allowed characters and…
Checking uploaded file extension with PHP before storing it on our server
We often allow our users to upload files to our server. It is important to limit file extensions that we accept. For example, we need to only accept .pdf and .txt files from our users, we don’t want them to send us any other files instead of pdf and txt. Then this snippet is useful…
How to create day and night cycle in unity
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 time and switched off on day time. Watch this tutorial:
How to create a simple moving train locomotive and wagons in Unity3D
In this tutorial you will see how to easily create a moving locomotive and wagons along the spline track in Unity3D.
How to Pause and Resume game 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.
How to create simple menu navigation and switch between menu screens in Unity
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 to go back to Main Menu. In this video you…
Enemy Patrol Starting from the Nearest and Closest Waypoint in Unity3D
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 incrementally. Watch the tutorial video on my YouTube channel and…
How to add a Virtual Joystick in your Unity game easily
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: https://drive.google.com/open?id=1KPUvXeJQw_XATMTY0QmF_4JE0-05sHQy That is a Unity package. Drag and drop it…