Main Page

From Unify Community Wiki
Revision as of 17:41, 1 December 2005 by 64.172.178.52 (Talk)

Jump to: navigation, search

Welcome to the Snippet Wiki

The Snippet Wiki is part of the Unify Web experience and is a place to find and share Unity scripts, wizards, etc. One of our primary goals right now is to have source code syntax highlighting. If you can help us with this, please let us know by heading over to the Unity Forum.


Current Status:

We have added syntax highlighting. Here is the usage.<csharp>/*csharp code here*/</csharp>.

Syntax highlighting isnt perfect yet. Freyr has made some great modifications that allow linking to documentation(msdn AND unity). We are hoping freyr can use his kungfu and fix some of the remaining bugs in the php coode.

The output code seems to overlap sometimes(only in safari), what is the problem? (freyr: Long lines?)


Character Controller Scripts

General Concepts

  • AManagerClass - example on how to add easy access to a singleton class in a scene.

General Purpose Effect Scripts

  • StopEmittingAfterDelay - After a configurable delay, particles will fade naturally, then finally the object will get destroyed with autodestruct.

Graphical User Interface Scripts

  • Button - Use this script on a guiTexture object for regular push buttons that send a message when clicked.
  • GuiRatioFixer - Use on a guiText/guiTexture object to automatically adjust aspect ratio

Heads Up Display Scripts

Wizards -- These go in the Assets/Editor folder in your project.

  • PlaceSelectionOnSurface - Takes the current selection and raycasts downward from each object and moves them to where they hit.

Go to User's Guide for usage and configuration help.

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox