Browsing articles in "Unity3d"
Mar
1
2016

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 (Unity sphere UV mapping is not suitable so I downloaded this sphere model and scaled transform to 5) – Add […]

Feb
23
2016

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 images how to use it: – Add “Vertical Layout Group” and “Content Size Fitter” components to the Content […]

Feb
1
2016

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 name and bundle identifier) – Apparently these should […]

Jan
21
2016

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: https://github.com/ouya/ouya-sdk-examples/tree/master/Unity – Unzip and open the project (I used CharacterController project, Scene3rdPerson.scene) – […]

Dec
26
2015

Useful Settings for Visual Studio 2015 + Unity

Finally installed VisualStudio with unity, 2015 community edition (update 1) seems pretty good so far (new monodevelop was too bugged..) Here’s some common settings to go look for when customizing the vs editor. — SOURCE CODE MINIMAP Quick launch command: scroll bars (select text editor […]

Dec
24
2015

Open & Play MIDI Files with winmm.dll in Unity

Yay – Playing Midi files in unity! Notes: – Works on PC only – If you make a build, midi files wont be included automatically (unless they are in StreamingAssets folder, havent tested it though..) References: – Midi code from http://www.codeguru.com/columns/dotnet/making-music-with-midi-and-c.html – MidiOutCaps c# struct […]

Dec
23
2015

Play Midi Sounds with midi-dot-net dll

Instructions: – Download midi-dot-net from https://code.google.com/p/midi-dot-net/ (from downloads section, midi-dot-net_1.1.0.zip) – Unzip and copy “Midi.dll” into your unity project folder, Assets/Plugins/ – Create c# script and use the source below for testing – Attach the script to gameobject in scene and hit play, should hear […]

Dec
21
2015

Matrix Playground Shader

Finally decided to try shader matrices.. (because having issues with custom billboard shader) Doing Translate, Scale, Rotations with matrix operations seems quite simple actually! Would had been totally lost without these two links: http://www.codinglabs.net/article_world_view_projection_matrix.aspx http://www.gamedev.net/topic/610115-solved-rotation-deforming-mesh-opengl-es-20/#entry4859756 How to use the shader: – Get the source below, […]

Dec
19
2015

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 frame. Project sources: https://github.com/unitycoder/UnityMecanimBasicAnim Resources: – Sprite created with Universal LPC Sprite Sheet […]

Dec
17
2015

Get Angle Between 2 GameObjects in Degrees (0-360)

Small helper script to check angle between 2 objects in degrees (and in between 0-360). It also includes test code for atan2Approximation, have not measured if there are any benefits using it.. Also note [ExecuteInEditMode], so it runs in editor without playmode. This file contains […]

Pages:«1...13141516171819...49»

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch Instagram

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.