Simple Event & Delegate Script
Just a quick test on events & delegates (taken from this live tutorial) – New scene – Add Sphere object to the scene (and move it into Main Camera view, for example 0,0,0) – Create new script:...
View ArticleLeap Motion PassThrough Threshold Shader
You can add adjustable threshold to Leap Motion passthrough shader, so that your hands are more visible (less transparent) in the overlay image. TUTORIAL – Download unity examples package,...
View ArticlePixel grass with rounded edges effect
(click image to view) related forum topic for inspiration: http://forum.unity3d.com/threads/round-edges-of-pixel-art.308402/ steps: – Use cutout shader (and have the texture filter mode as bilinear –...
View ArticleError: Android SDK is outdated
Got this error message on building .apk: “Android SDK is outdated SDK Build Tools version 19.1 < 21” And in the console: “Error building Player: CommandInvokationFailure: Unable to update the SDK....
View ArticlePointEffector2D
Unity5 comes with new PointEffector2D How to use it? – Add sprite to scene – Add CircleCollider2D (or some other 2D collider) – Enable: [x] Trigger *Note: Effector works without trigger enabled also,...
View ArticleWebGL Build – Custom Loading Effect
Webgl build progress meter seems stuck at the end sometimes, so it would be nice to have some “loading/uncompressing” effect there.. WebGL example:...
View ArticleCreating car mirror with rendertexture
Creating simple car mirror using rendertextures. HOW TO – Right click at Project window, Create / RenderTexture – Rename “New Render Texture” into something else, like “MirrorRT” – Drag & Drop...
View ArticleBuilding .apk with Release mode
Uploading .apk to Google Play can give error message: “Upload failed You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode.” Building .apk with Release mode –...
View ArticleConverting videos to .ogg manually with QuicktimeTools.exe
HOW TO – Open command prompt – Go to your unity5 data folder, for example, C:\Program Files\Unity\Editor\Data\Tools\ – Run this command below to convert your videos: (*set correct paths to input and...
View ArticleRotating Sphere By The Moved Distance
How to rotate sphere based on the distance its moving. As in: http://docs.autodesk.com/3DSMAX/12/ENU/3ds%20Max%202010%20Tutorials/files/WS1a9193826455f5ff-3a29af00119afd28e95-4398.htm Source: *Angle...
View ArticleMecanim Simple Trigger Animation Example
Simple test project, triggering shoot animation on key press, and not triggering it, if its already running. Also one Animation event call included, could be used to spawn the projectile at correct...
View ArticlePublishing to Ouya (2016)
Founded my old sad little Ouya box and decided to try if publishing to it still works from Unity.. PUBLISH TO OUYA 2016 – I’m using 5.3.1p2 – Download example project:...
View ArticlePublishing to Android TV
Quite meaningless “tutorial”, as it was too easy to build .apk to android TV from unity.. BUILD APK – Build android .apk as usual (i used all the default settings for testing.. just enter your company...
View ArticleUI Scroll View automatic Content height
“Hidden” inside the docs ( http://docs.unity3d.com/Manual/HOWTO-UIFitContentSize.html ) you can find details how to make UI ScrollView content to have automatic size based on the child objects. Here’s...
View ArticleLatitude Longitude Position On 3D Sphere (V2)
This is just a c# conversion and few updated notes for the old post : http://unitycoder.com/blog/2011/08/09/latitude-longitude-on-3d-sphere/ Instructions – Attach the script below to your sphere...
View ArticleDecode QRCode with ZXing.net + Unity
Simple example to decode QRCode from texture image. – Download XZing.net from http://zxingnet.codeplex.com/ – Unzip, Copy zxing.unity.dll from Unity/ folder into your Unity project (create Plugins/...
View ArticleUsing RenderDoc with Unity
“RenderDoc is a stand-alone graphics debugging tool” Getting Started – Download standalone https://renderdoc.org/builds – Install it – Start Unity 5.3 or later (I tested with 5.4beta.f2) – Right click...
View ArticleUsing XBox One Kinect with Unity
*main image: Kinect GreenScreen example scene Setting up Kinect with Windows 10 – connect to pc (using adapter) – Driver installs automatically and you are Done – You can test it with these apps: 3d...
View ArticleAdding Custom Script Templates
Adding custom script templates is quite simple: – Create your custom script – Replace all class name strings with #SCRIPTNAME# (this will get replaced by the new created script name) – Move the script...
View ArticleUsing Accord.NET with Unity
While looking for Harris Corner Detection examples, without using openCV, founded this framework: “The Accord.NET Framework is a machine learning framework combined with audio and image processing...
View Article