Browsing articles in "Tutorials"
Sep
2
2019

Texture tiling broke, after importing material and texture from 2018.x into 2017.x (using unitypackage)

Imported some .unitypackage from 2018 into 2017 (to downgrade), and had strange texture issue with some part of the model.. took couple of hours to find out that material tiling had resetted to 1 (instead of 100 – duh!) and then also texture was not […]

Aug
18
2019

Read File from Oculus Quest /sdcard/ Folder

New 2023 (more limitations) “This is because the Quest OS v53 now uses Android 12, which limits the way apps can access storage. From the developers of Polysketch: – No Access— /sdcard/Polysketch/– Can create folders, but not files— /sdcard/Android/Polysketch/– Full folder & file creation— /sdcard/Android/Android/data/com.PolysketchLLC.Polysketch/files […]

Aug
9
2019

Deploy to Android device with wireless connection

Using windows Command Prompt: // check if your device is presentadb devices// get device ip address (see inet row) adb shell ip addr show wlan0// enable tcpip and portadb tcpip 5555// connect device (use your device ip address)adb connect 192.168.1.90:5555 Now you can remove usb […]

May
25
2019

Enable HDR Color picker for Shader or Script

I needed HDR color for some old Unlit/Color-shader, and for c# script also, found out that you can add this attribute for the shader: And for the script: More info:https://docs.unity3d.com/ScriptReference/ColorUsageAttribute.htmlhttps://docs.unity3d.com/Manual/SL-Properties.html Also make sure your Camera has [x] HDR enabled

May
12
2019

Using SharpCompress in Unity

If you need to work with zip/rar/tar/gzip packages, can use SharpCompress to handle opening or creating those files. Compile SharpCompress DLL (unless you can find it online somewhere) Download project https://github.com/adamhathcock/sharpcompress Unzip and open in VisualStudio (i used 2017) Security warning, press ok Security warning, […]

May
9
2019

Creating Single .EXE from Unity Build Files

Using Enigma Virtual Box https://enigmaprotector.com/en/downloads.html – Select input file name: (This is .exe file from unity build)– Enter output file name: (this is the output single exe file) *This MUST be same as the original .exe file name, so that data folder gets found.– Click […]

May
6
2019

Ray Marching

Tested ray marching in Unity after watching this episode of The Coding Train. Source code:https://gist.github.com/unitycoder/7120e492deba748dba3d4e1e424d3c2a Usage:Set camera to 0,0,-10Projection: OrthographicThen Place spheres under empty gameobject, with sphere z values at 0

Apr
25
2019

Simple Image Tracking AR Android app using Vuforia

How to build simplest possible android AR app in “few” steps. ( No coding at all! ) Download Unity 2018.3.x https://download.unity3d.com/download_unity/06548a9e9582/UnityDownloadAssistant-2018.3.13f1.exe Install with these 3 options selected: [x] Unity, [x] Android Build Support, [x] Vuforia support. *Visual studio might be listed here also, if you […]

Mar
2
2019

Create Gradient Texture From Array of Colors

Small tool to generate gradient Texture2D from array of colors. (Note: maximum colors is 8, since it uses unity Gradient internally ( https://docs.unity3d.com/ScriptReference/Gradient.html ) Source:https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Texture/GradientTextureMaker.cs Example usage script: (attach script to some 3d object)https://gist.github.com/unitycoder/f7ea9019bb67b7042efbd08f0f4fa785

Dec
3
2018

DllNotFoundException: libnuitrack – nuitrack.NativeNuitrack.Init

Briefly tested https://nuitrack.com/ in unity, and had this error when trying to run examples: DllNotFoundException: libnuitrack nuitrack.NativeNuitrack.Init (System.String config) nuitrack.Nuitrack.Init (System.String config, NuitrackMode mode) NuitrackManager.NuitrackInit () (at Assets/NuitrackSDK/Nuitrack/NuitrackManager.cs:218) NuitrackManager.Awake () (at Assets/NuitrackSDK/Nuitrack/NuitrackManager.cs:117) There is a thread about it in nuitrack forums, https://community.nuitrack.com/t/dllnotfoundexception-libnuitrack/562/23 and the solution […]

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.