Browsing articles tagged with " script"
Oct
29
2017

Visual Studio Snippet Generator Online

Didn’t find any easy or working snippets generator for VS, so made one in jsfiddle: https://jsfiddle.net/unitycoder/nrbbb2qw/ New page: http://tools.unitycoder.com/VisualStudioSnippetsGenerator/   Collecting some useful snippets here *currently just 1 there : ) https://github.com/unitycoder/UnityVisualStudioSnippets Feel free to post ideas for most common snippets.. personally i’d like to […]

Jul
12
2017

Editor Plugin: Paste Script To File

Small editor script to easily paste full script into new file in project. (instead of having to manually create new script file, opening it, pasting contents to it, renaming file etc..) Usage – Download CopyPasteHelper.cs script from https://github.com/UnityCommunity/UnityLibrary/blob/master/Scripts/Editor/Tools/CopyPasteHelper.cs – Place it under Editor/ folder in […]

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)    

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.