*[[CoUpdate]] - An alternative to Update which support yield instructions. Benefit from cleaner code.

+

−

*[[Executors_Framework|Executors Framework]] - A framework for multi-threading without getting a headache. (Warning: The Unity API is not thread-safe)

+

−

*[[CSharpEventManager]] - C# implementation of a messaging/notification system. Allows subscription to events without referencing their definitions.

+

−

*[[CSharpMessenger]] - Another C# messaging/notification system implemented using delegates and generics.

+

−

*[[CSharpMessenger Extended]] - C# messaging system using delegates and generics. Based on [[CSharpMessenger]] but has more error detection.

+

−

*[[FakeGizmoDemo]] - simple example of creating a fake Gizmo - a three-arrow axis, mouse-moveable, that can be applied to an object at Runtime, not just during editing. Also contains an example of Procedural Mesh Creation - using only code to create an in-game mesh object from vertices and triangles.

+

−

*[[JavascriptMultiDimArrays]] - Declare multi-dimensional arrays like int[,] or int[][] in JS (mostly obsolete in Unity 3.2, though still useful for jagged arrays)

*[[ConstantVelocity]] - Set a local velocity to an object (useful for missiles perhaps?)

+

−

*[[Flashlight]] - Allows the switching on and off of a light in script.

+

−

*[[UpdatePump]] - Register any method in any object to be called in one of Unity's update loops.

+

−

*[[OnCollideExplode]] - Spawn a prefab (explosion) on collision, and remove the GameObject from the game.

+

−

*[[OnCollideSound]] - Spawn a prefab (preferably a sound) if a collision is over a certain magnitude.

+

−

*[[OnExplosionEffect]] - Give an explosive effect over an area.

+

−

*[[OnMouseDown]] - Sends OnMouseDown messages on an iPhone.

+

−

*[[PointerManager]] - Hides the mouse pointer when it is not in use.

+

−

*[[SwitchCamera]] - Switches between cameras in your scene.

+

−

*[[Teleporter]] - Teleport all objects from one place to another.

+

−

+

−

== Code Snippets ==

+

−

+

−

*[[Accessing number of drawcalls from script]] - Retrieve the number of drawcalls for statistical purposes

+

−

*[[Calculating Lead For Projectiles]] - These script fragments allow you to add some lead ahead of the target allowing projectiles/missiles to collide with the target. Uses a quadratic rather than an iterative solution.

+

−

*[[Load Data from Excel 2003]] - This script allows you to load information from excel spreadsheets into Unity, written in C#.

+

−

*[[Save and Load from XML]] - This script allows you to save and load data from an XML file, written in C# (JS version included).

+

−

*[[Save and Load from XML U3 Collections]] - Save and load all game objects in a scene, modify the code to add in what you want saved about the game object, written in C#.

+

−

+

−

= Controllers =

+

−

+

−

== Camera Controls ==

+

−

*[[AspectRatioEnforcer]] - Force the screen to a desired aspect ratio, using letterboxing/pillarboxing as necessary.

*[[Click To Move]] - Moves an object towards the mouse position when the Left Mouse Button is clicked

+

−

*[[ClickCharacterController]] - Uses Locomotion to move a character to the point the Left Mouse button is clicked

+

−

*[[DoubleJumpController]] - A hack for the 2d gameplay tutorial character controller script, it allows the character to make a second jump when jumping, or make a little jump when falling.

+

−

*[[Finite State Machine]] - A simple Finite State Machine framework to control NPCs.

+

−

*[[Force2D]] - Constrain a GameObject to move in two dimensions.

+

−

*[[FPSWalkerEnhanced]] - Adds features to standard FPSWalker, such as sliding down slopes, falling damage, and walk/run modes

+

−

*[[Gesture_Recognizer]] - A math based gesture recognition script.

+

−

*[[GridMove]] - A controller for character movement typically seen in old-school 2D RPGs and strategy games.

+

−

*[[HeadLookController]] - A component that can be used to make a character look towards a specified point in space, smoothly turning towards it with for example the eyes, head, upper body, or whatever is specified.

+

−

*[[JCar]] - A car using wheel colliders.

+

−

*[[KeyCombo]] - A class that can be used to detect fighting-game style combos.

+

−

*[[LookAtMouse]] - Cause an object to rotate toward the cursor, along the y axis.

+

−

*[[Pathfinding]] - ['''Old'''] A pathfinding-system using raycasting to avoid obstacles

+

−

*[[PhysicsFPSWalker]] - Another physics based fps walker script.

+

−

*[[RigidbodyFPSWalker]] - An physics based FPS walker that works with rigidbodies and thus is affected by forces, joints or other rigidbodies

+

−

*[[SeekSteer]] - A class that can be used to move an object to follow a loose path of waypoints

+

−

*[[ShipControls]] - Place this script on a [http://www.otee.dk/Documentation/ScriptReference/Rigidbody.html RigidBody] for 2D spaceship controls like [http://otee.dk/gallery/udwc/OverWhelmedArena.html OverWhelmed Arena].

*[http://www.pixelplacement.com/iTween/ iTween] - Focusing on the established solutions and frameworks of projects such as TweenLite, Tweener, and other tweening systems, iTween is a battle-tested solution for streamlining production in the Unity3D environment.

+

−

*[[MoveObject]] - Basic functions for when you just need to move something from point A to point B, or rotate by a given number of degrees, without anything fancy.

+

−

*[[Tween]] - An adaptation of the Tweener class of FLASH for unity.

+

−

+

−

= GUI =

+

−

+

−

== Graphical User Interface Scripts ==

+

−

+

−

*[[AutoType]] - Automaticly types a string of text typewriter style.

+

−

*[[Box_Script]] - Use this system to easily make simple GUI elements in nice looking boxes with buttons that actually do something useful. All generated at runtime from a MenuStyle.

+

−

*[[Button]] - Use this script on a guiTexture object for regular push buttons that send a message when clicked.

+

−

*[[Custom_2D_Pointer]] - Make a custom pointer that changes shape at the edges of the screen.

+

−

*[[Custom Mouse Pointer]] - Make a custom pointer that and draw it over OnGUI Elements.

+

−

*[[CustomScrollView]] - Helper-class that implements a scrollview where you can explicitly hide/show the scrollbars. Done with two nested groups

+

−

*[[DraggableGUIElement]] - Click and drag on GUITexture or GUIText to move it around the screen.

+

−

*[[DragSlider]] - Use this script with a pair of [http://otee.dk/Documentation/ScriptReference/GUITexture.html GUITexture]s to make a functioning slider.

+

−

*[[DMGInput]] - Passthrough for the Input.GetMouseButton* functions that will allow you to ignore clicks on registered GUI Rects. (Ex: Click on GUI, and not on the object behind in the scene.

+

−

*[[Fade]] - General routines that allow fading of GUITextures or materials (including GUITexts) from anywhere, both in and out and using either alpha or colors, with optional easing.

+

−

*[[FadeIn]] - Allows you to show/hide a [http://www.otee.dk/Documentation/ScriptReference/GUIText.html GUIText] or [http://www.otee.dk/Documentation/ScriptReference/GUITexture.html GUITexture] when pressing a key/button.

+

−

*[[FileBrowserWithColumns]] - Columns style file browser, allows the user to open and save files/folders from a Finder like GUI.

*[[Marquee]] - Creates a scrolling label that moves from left to right across the screen.

+

−

*[[PasswordField]] - Allows the user to type in a field masked by *'s (or any other character) [Unity has this built-in now. Leaving it as an example of more complex widget construction, but shouldn't be preferred for actual usage.]

+

−

*[[PauseMenu]] - Standard pause menu used by Fugu Games for web players and widgets

+

−

*[[PopupList]] - A button that pops up a selectable list when clicked

+

−

*[[Position To Rect]] - Convert a GUITexture position to Rect (GUI coordinates)

+

−

*[[SelectList]] - A list of elements of which one can be selected.

+

−

*[[WithPrefs]] - Functions that change values and modifies preferences in one simple step

+

−

+

−

== Heads Up Display Scripts ==

+

−

+

−

*[[FramesPerSecond]] - Use this script on a [http://unity3d.com/Documentation/Components/class-GuiText.html GUIText] object to display FPS counter.

+

−

*[[MessageDisplayer]] - Use this script on a [http://unity3d.com/Documentation/Components/class-GuiText.html GUIText] object to have a self-disappearing list of status messages.

+

−

*[[MessageList]] - Create a list of timed self-fading messages.

+

−

*[[Radar]] - Use this script on a GameObject to display a radar.

+

−

+

−

== Editor GUI Scripts ==

+

−

+

−

*[[EditorGUIExtension]] - Some extensions to make coding the GUI for utilities/custom inspectors easier.