Skip to content

ThirteeNov

My personal blog about coding and internet

Menu
  • About me
  • About Zofia Kreasi
  • Cart
  • Checkout
  • Making an airplane game from scratch in Unity
  • My account
  • Privacy Policy
  • Privacy Policy – zkLeaderboard
  • Sample Page
  • Shop
  • Tutorials on Learning JavaScript
  • ZKAccounts – Privacy Policy
Menu

Category: Unity

Super simple way to load any image from URL and show it as a UI Image in Unity

Posted on November 6, 2022November 28, 2022 by Habibie

Hey dude, here I’m going to share a simple script to load any image you can have from URL accross internet and show it as a UI Image inside your Unity game. Create a script name it UiImageFromUrl.cs and copy and paste the script content below: Then attach the script to a UI Image object…

Read more

Blinking Marker – Unity Screen Space Marker Overlay Script

Posted on October 30, 2022October 30, 2022 by Habibie

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 how to use the script: And here is the script:

Read more

ThirteeNov Walk Patrol C# script for creating any patrolling game object in Unity

Posted on September 13, 2022October 30, 2022 by Habibie

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:

Read more

How to Install VR APK during development for Oculus Quest 2

Posted on July 11, 2022June 20, 2023 by Habibie

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 on Oculus Quest 2 and SideQuest on PC, connect them…

Read more

Unity lens flare is not working, what should I do?

Posted on May 18, 2022May 18, 2022 by Habibie

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 working.

Read more

Some C# methods to write and read files, creating a folder and listing files inside it

Posted on February 12, 2022February 14, 2022 by Habibie

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 directory ordered by date

Read more

Introducing UniCipher : encrypt your playerprefs and any string to make them unreadable

Posted on February 10, 2022February 10, 2022 by Habibie

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 paste this: Attach it to a game object, and play…

Read more

Unity navigation tabs tutorial

Posted on February 10, 2022 by Habibie

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 feature. Please have this script (MyTabs.cs) and watch my video…

Read more

2D Object Movement Touchpad Script for Unity

Posted on February 10, 2022February 10, 2022 by Habibie

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 “MyMovementTouchpad”): Then add event trigger to it. You need two…

Read more

PHP JSON to Unity C# and Vice Versa

Posted on February 8, 2022February 8, 2022 by Habibie

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) like this: And that php script is placed somewhere on…

Read more

How to check whether the device is connected to internet or not in Unity

Posted on February 8, 2022February 8, 2022 by Habibie

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 forget to use Networking namespace: using UnityEngine.Networking;

Read more

Unity Useful Snippets

Posted on January 29, 2022December 29, 2022 by Habibie

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 apparently so simple. To set a tag of a game…

Read more

How to click and detect an object in Unity3D?

Posted on January 27, 2022January 27, 2022 by Habibie

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 add a tag to them, for example “FunnyTag”. Don’t forget,…

Read more

Wondering why you can not modify position of your player with Character Controller enabled in Unity?

Posted on September 6, 2021September 6, 2021 by Habibie

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 and change its position then re-enable it again like this:…

Read more

How to add a 2D marker or icon on our game screen according to the 3D object in the scene in Unity

Posted on September 3, 2021November 11, 2021 by Habibie

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 develop from it to make your own HUDs for your…

Read more

Fixing _GoogleMobileAds.h and iOS build failure in XCode when using AdMob

Posted on July 6, 2021July 6, 2021 by Habibie

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, because at first time I was thinking it was not…

Read more

Android / iOS Player Settings tab/page empty in Unity Build Settings? Don’t be worry, here is why

Posted on July 5, 2021July 5, 2021 by Habibie

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 program. So to solve this problem, I just tried to…

Read more

Trying to send HTTP POST request from Unity but it’s empty? Here is why…

Posted on June 21, 2021June 21, 2021 by Habibie

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 out, and finally I found an answer from StackOverflow, and…

Read more

Unity Random Spawn Grid : Free script to randomly spawn objects in grid formation

Posted on April 16, 2021April 16, 2021 by Habibie

If you want to spawn your prefab based on an imaginary grid, you can use this script. For example you want to create a scene with a lot of asteroids across the player, you can make an empty game object, attach this script and set reference to your asteroid stone prefab, then run the game.

Read more

How to play some audio and sound files by clicking some buttons respectively in Unity

Posted on April 9, 2021April 16, 2021 by Habibie

Create a script in your Unity editor and name it MyAudioManager.cs Then paste this code: And watch the video for more steps: Then you will know how to play multiple audio sound files by clicking some buttons on Unity 😀

Read more

Posts pagination

  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 7
  • Next
ciihuy2020

Welcome!

  • My YouTube Channel
  • My GitHub Page
  • About me

Categories

  • 3DVista
  • Android
  • Apache
  • C#
  • Cordova
  • Electron & Node JS
  • HTML5, CSS & JavaScript
  • iOS
  • Let's Make Unity Games
  • Misc
  • Photoshop
  • PHP
  • Python
  • Uncategorized
  • Unity
  • WordPress

Recent Posts

  • Hover Reveal script for Unity to show and hide object on mouse hover
  • How to Prevent UI Clicks in Unity from “Bleeding Through” to 3D Objects Behind Them
  • Make objects like wires and cables easily in Unity using Ciihuy Curved Mesh
  • [SOLVED] Can’t Add Custom Domain to Blogger After Losing CNAME Verification
  • iOS App Icon Generator by CiihuyCom
© 2026 ThirteeNov | Powered by Superbs Personal Blog theme