This is a very easy to use Unity Screen Space Marker Overlay script that will help you to show a 2D image/sprite on game screen to show the user some specific objects that has a specific tag. In this video below I will show you...
ThirteeNov Walk Patrol C# script for creating any patrolling game object in Unity
Hi guys… I’m sharing this C# script to make any game object moving and patrolling along given way points that are simple cubes with trigger and tag on them and bla bla bla… here is the script: You can watch the video for better understanding:
Wondering why you see Chrome Cast icons on your HTML5 videos on your website?
Sure, I hate it too. When I use video tag in my website, if I open it from my chrome on my mobile phone, I see Chrome Cast icons on each videos that I have. How to disable such icons? It is easy. Just add...
How to Install VR APK during development for Oculus Quest 2
Do these steps to install an app on your Oculus on development stages: Step 1: Preparations: 1. Enable developer mode of Oculus Quest 2: instructions provided from this link 2. Download & Setup SideQuest from this link Step 2: Install APK via SideQuest: 1. Turn...
Do you need an SVG code of WhatsApp logo? Here it is.
Hi there, I have an SVG code of WhatsApp logo that you can use in your website projects. This WhatsApp logo is vector based, high resolution no matter how far you zoom it in. Here is the code: <svg style=”pointer-events:none; display:block; height=38px; width=38px” width=”38px” height=”38px”...
Unity lens flare is not working, what should I do?
Very common beginner problem. The solution to make your lens flares working in Unity: Make sure your camera has Flare Layer component. And make sure your light object is not covered by any collider. Try these two checks then you will see your lens flare...
Be careful with malicious script attacking WordPress sites
I just found a client facing this problem, that his website is attacked by a some kind of virus or malicious script. His website is replaced and redirects to another malicious web pages, some random and malicious blog posts generated on his posts list containing...
Useful JavaScript snippet when you are watching that online Videos
Hi guys, I was searching for something on StackOverflow and found this topic. I’m not suggesting you to do it, just educational information, that this JavaScript code is somehow useful. I don’t know how it works technically but it works. It works like an invisible...
Some C# methods to write and read files, creating a folder and listing files inside it
This two C# snippets may be useful to you if you are working on file read and write in your Unity C# project. Don’t forge to use System.io okay? Here is the code: Write to file List files inside a directory List directories inside a...
Introducing UniCipher : encrypt your playerprefs and any string to make them unreadable
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...