Sometimes we need to know how much is the size of a directory including files inside it in PHP. Here is a nice simple PHP function to do so. Just call the function and it takes one parameter which is directory location. For example we...

Source Codes & Coding Tutorials
Sometimes we need to know how much is the size of a directory including files inside it in PHP. Here is a nice simple PHP function to do so. Just call the function and it takes one parameter which is directory location. For example we...
Hi, this is a nice function maybe useful for your coding need in PHP. This function will convert any numbers in bytes to a nice format like kb, mb, gb and so on. Here we go:
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...
This tutorial teaches you how to make an online shop that works with WhatsApp for free without using WordPress or Joomla CMS. This PHP software is a lightweight and simple CMS system that allows you to post products with pictures, description, pricing, quantity and options....
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:
There is Array in PHP, and there is also object. We can simply make array that each member contains a value such as string or integer or we can also store object as the value of each array member. This is the example that I...
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...
This cooldown button program detects is the current visitor already visited the website or not, if he/she visited already it checks when is that, and then decide does he/she can click the cooldown button again or not. Here is the code, a bit messy:
My previous post shows you how to read a file and retrieve its content in PHP. This one, you will see how to read file and also write to a file with easy: Here is the code:
This simple script can be used to read a file and displaying it contents into a web browser. Watch the video here:
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...
To deal with game UI languages and translations in Unity easily, you can use this very simple language localization system. Define your words translation in a script included in this package and make necessary configuration then you are done! Contact me if you have any...