Quantcast
Channel: Tutorials – Unity Coding – Unity3D
Browsing all 58 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

Leap 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 Article


Image may be NSFW.
Clik here to view.

Pixel 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 Article

Image may be NSFW.
Clik here to view.

Error: 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 Article

Image may be NSFW.
Clik here to view.

PointEffector2D

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 Article


Image may be NSFW.
Clik here to view.

WebGL 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 Article

Image may be NSFW.
Clik here to view.

Creating 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 Article

Image may be NSFW.
Clik here to view.

Building .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 Article


Image may be NSFW.
Clik here to view.

Converting 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 Article


Image may be NSFW.
Clik here to view.

Rotating 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 Article

Image may be NSFW.
Clik here to view.

Mecanim 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 Article

Image may be NSFW.
Clik here to view.

Publishing 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 Article

Image may be NSFW.
Clik here to view.

Publishing 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 Article


Image may be NSFW.
Clik here to view.

UI 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 Article

Image may be NSFW.
Clik here to view.

Latitude 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 Article


Image may be NSFW.
Clik here to view.

Decode 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 Article

Image may be NSFW.
Clik here to view.

Using 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 Article


Image may be NSFW.
Clik here to view.

Using 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 Article

Image may be NSFW.
Clik here to view.

Adding 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 Article

Image may be NSFW.
Clik here to view.

Using 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
Browsing all 58 articles
Browse latest View live