You want to make your text uneasily readable, try to encrypt it using this method: UniCipher. I’ve made this simple C# script to convert your text into an unreadable text so no one can easily understand and modify it. Make a script named UniCipher.cs and...
Unity navigation tabs tutorial
How to create navigation tabs and buttons UI in Unity and how to change the buttons color by script? In this tutorial I will show you how to make tabs in Unity and how to switch between each tab plus its simple button color changing...
2D Object Movement Touchpad Script for Unity
Hi there, in this post I’m going to share with you how to create a touchpad to control 2D object movements in Unity. First step is to make an image UI element in your Unity Canvas. Then attach this script to it (name this script...
PHP JSON to Unity C# and Vice Versa
So, you have a backend script in PHP that returns JSON string and you want to parse that data from your Unity game. What would you do?Based on my experience, here is how I do it. PHP Let’s say I have a PHP script (index.php)...
How to check whether the device is connected to internet or not in Unity
If you want to check is the Unity game running in a device connected to internet or not, you can call this coroutine function: Simply call that coroutine function like this: StartCoroutine(CheckInternetConnection()); Then wait for a message in your Unity console about internet connection. Don’t...
Unity Useful Snippets
I made this post to compile some of useful snippets that I frequently use in my coding. So instead of searching around again and again, I better to list them here in one place. How to set object tag by script in Unity This one...
How to click and detect an object in Unity3D?
In this blog post, I’m sharing a simple technique and script to make you able to click any 3D object and detect what is the name of that 3D object in your Unity Editor using simple raycasting. First of all, make some 3D objects and...
How to remove all thumbnails from wordpress posts
In case you want to remove all the existing post thumbnails / feature images of a website, you can go to phpmyadmin and find your database, look up for wp_yoursite_postmeta table, and run this query: Remember, “yoursite” is your website’s prefix that you setup on...
How to find duplicated words in Notepad++
To find if you have duplicated words (each line one word, for example), sort all the lines by alphabet, then hit ctrl+f and find the duplicated word using this regex: ^(.?)$\s+?^(?=.^\1$) Viola, you’ll find them.
How to play any YouTube video dynamically using YouTube iFrame API + autoplay on mobile devices
In this blog post you will see a script that I’ve demonstrated on my YouTube channel to play any YouTube video dynamically by clicking a button or typing a video id easily. Here is the script: The script is originally found here but I modified...
Wondering why you can not modify position of your player with Character Controller enabled in Unity?
I have a capsule object with Character Controller component enabled in it. Somehow if I want to change it’s transform.position, I can not just do it like as if it doesn’t have Character Controller. So workaround is, to temporarily disable the CC for a while...
How to add a 2D marker or icon on our game screen according to the 3D object in the scene in Unity
I believe you have seen a lot some games that show a 2D icon or marker that is pointing to an object in 3D world inside the game. In this blog post I will share a simple script that you can learn about it and...
Fixing _GoogleMobileAds.h and iOS build failure in XCode when using AdMob
So many times this problem happened to me when I build my Xcode generated project from Unity if I use AdMob. One of the problems is the missing _GoogleMobileAds.h file, and so many other problems. The main cause is because I never used the Cocoapod,...
Android / iOS Player Settings tab/page empty in Unity Build Settings? Don’t be worry, here is why
Several times I got this problem, that when I switched my build settings to Android or iOS, when I open the Player Settings, I found an empty tab/page. I was wondering why it happened. Turned out that I installed non-matching Android and/or iOS Support installation...
Building our first Cordova based mobile app, step by step
By using Cordova, we can build a web application that can run on many mobile devices both iOS and Android. This post will show you all the basic required steps to do it. NodeJS First of all, to use Cordova, we need to install NodeJS....
Trying to send HTTP POST request from Unity but it’s empty? Here is why…
In this blog post I’m going to share my annoying experience with Unity. It is about sending POST request from Unity C# by using UnityWebRequest. I tried to send the post data, but the server did not detect it. It took me hours to figure...
How to find an element from a jQuery AJAX response with jQuery .find() method
If you are a jQuery luver, you must know how to use jQuery Post and Date functions. Recently I’ve been working on a project, that involves this jQuery Get thingy like this: But, unfortunately it did not work. If you are facing the same case...
How to use Deep Linking feature in 3D Vista and some useful JavaScript method calls
Hello, and here is my first blog post about 3DVista, a nice 360 virtual tour software. Deep linkings I want to share some deep linking features that we can use in 3DVista: Deep link for focusing to some element/hotspot, for example “painting1”: You can also...
How to get rid of this error alert: CORS header ‘Access-Control-Allow-Origin’ missing
If you are working on web development, sometimes you face this problem, for example you want to include/access some files that are not on your current website domain and then you got this error message on your dev console log: CORS header ‘Access-Control-Allow-Origin’ missing How...
Electron Uncaught ReferenceError: require is not defined 2021 even nodeIntegration is true
This “require is not defined” is pretty annoying to me as Electron user. Last year when I got this problem, I can simply solve it by adding: nodeIntegration: true. But this time, on 2021, this problem comes again. So to solve it we need to...