Working on a simple coding job and facing this red message on dev console: locked by CORS policy: No ‘Access-Control-Allow-Origin’ What to do? I simply make this htaccess file to bypass CORS policy:

Source Codes & Coding Tutorials
Working on a simple coding job and facing this red message on dev console: locked by CORS policy: No ‘Access-Control-Allow-Origin’ What to do? I simply make this htaccess file to bypass CORS policy:
Let’s say we have our local webserver, in my case I use XAMPP so I can have a local web in my localhost. Then, by accessing this local web page over wifi from my mobile phone web browser, I can upload some files from my...
For a poor guy like me especially when I want to develop iOS apps, I should have a Mac to install XCode and begin developing apps. But fortunately, there is an opportunity to me to install macOS in my existing PC using VMWare! Here is...
In case you need to make a countdown in your website, here is a handy JavaScript code you can use. Just edit the variable countDownDate and set it the date you want, then run the JS. Watch the console log counting the seconds. It will...
This is a video tutorial showing you how to make a friendly object/character that will follow the player object anywhere it goes. For example in this game I have FPS character controller, and wherever I go I can make that friendly object walks following me...
Hi, in this blog post I will start a tutorial series about how to make rocket launcher shooting game in Unity. I already have the game ready. It is a FPS game with Skibidi Toilet monsters around and we need to escape and run away...
I have some lens flare files that I usually use and I forgot where did I get it, I believe I got it from internet. So I return it back to internet so you guys can use it too. Here is the link I stored...
This simple script is to connect the game to Photon server and instantiate a player prefab on your Resources folder. Make sure your player prefab has PhotonView component in it. Check out this video on how to use it:
In case you need a simple script to move your game character using WASD buttons, feel free to use it:
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...
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...
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:
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...
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...
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”...
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...
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...
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...
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...
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...