Browsing articles in "functions"
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: This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden […]

Jan
6
2012

Noob Triangulator (js)

Testing mesh (triangle) generation.. (screenshot: random mesh plane) The REAL Triangulator is here: http://wiki.unity3d.com/index.php/Triangulator  (it can handle complex shapes etc.) My javascript triangulator works by adding 1 vertex in the middle, and every triangle will point to it. I was thinking could use this for drawing […]

Jan
2
2012

Precalculated Sin Cos Arrays

In the old days (blitz basic, qbasic..) these lookup tables were quite useful! Download test scene: (moving sphere..Note! saved with Unity3D v3.5) mSinCosTables.unitypackage Source: (javascript, attach it to some object to see it moving..)

Aug
14
2011

Function: CubicBezier (2D)

Converted function from this source to Unity. Drawing bezier curves (2D). Download source: CubicBezier.unitypackage

Aug
13
2011

Function: Integer to Roman numerals

Small function for converting integer into roman numbers. ie 2012 = MMXII

Pages:«12

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

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.