Browsing articles tagged with " script"
Oct
7
2016

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 file under your unity installation folder: \Unity\Editor\Data\Resources\ScriptTemplates\ – Rename “YourScript.cs” into […]

Dec
3
2015

UI Text TypeWriter Effect [Script]

Quick & simple UI text typewriter effect (displays UI text 1 character at a time) Assign to UI text component, it grabs the text from it at Awake() and clears it, then starts to type out the text 1 character at a time.

Nov
4
2015

Leap Motion: Get Finger Position & Direction

Took a while to find info on how to simply get the Leap hand finger positions in unity, here’s cleaned up script to draw rays from fingertips to their pointing direction.  

Jun
2
2015

Dolly Zoom Effect

http://en.wikipedia.org/wiki/Dolly_zoom This version only works when target is directly at front (towards z), also viewWidth is manually given..(see for formula on that wikipage) Source: (attach to camera)

Dec
24
2014

Mobius strip Mesh Generator

^Current results.. drawn with Debug.Drawline() for now.. Trying to create möbius strip mesh using a script.. Founded some formulas here: (and it even has .obj exporter, but rather do it inside unity..) http://www.java2s.com/Open-Source/CSharp_Free_Code/3D/Download_Helix_3D_Toolkit.htm  TODO: – Build mesh (möbius strip) ** Well there is now better […]

Dec
2
2014

One liners: Simple Pause

Simple pause script for quick testing: – When P key is pressed, Time.timeScale value is toggled between values 0 (pause) and 1 (default) How to use: – Create new script file (c#) – Name it as “PauseMode” – Copy & paste the contents below (or […]

Nov
12
2014

using Visual Studio Community 2013 (Free) with Unity

“Visual Studio Community 2013 A Full-Featured IDE – FREE” (link) Some notes what it took to make it work (was pretty easy) Installing Visual Studio Community 2013 (FREE!) –    Download: http://www.visualstudio.com/en-us/products/visual-studio-community-vs –    Install (you can leave out those extras) –    Restart –    Start visual studio […]

Nov
12
2014

Draw Munching Squares

Converted this php script into unity, while trying to keep it similar to original code.. again some difference in the output but close enough.. http://rosettacode.org/wiki/Munching_squares#PHP   Source c# (MunchingSquares.cs)    

Mar
27
2013

Editor Mesh Helper Gizmos

Started making a mesh helper editor script. Should be useful to see the mesh details easily.. Current features: – Display selected object details (DrawGizmo) – Draw green boxes on vertex locations (Handles.DotCap) – Display vertex number and UV info (Handles.Label) – Label position is affected […]

Jan
26
2013

Save Mesh Created by Script in Editor PlayMode

Saving meshes (which were created by script)  in editor playmode was surprisingly simple, http://docs.unity3d.com/Documentation/ScriptReference/AssetDatabase.CreateAsset.html   Updated version:     old version:

Pages:12»

@unitycoder_com

Subscribe to Blog via Email

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