Scripts

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
 
<b>Camera Controls</b>
 
<b>Camera Controls</b>
 
*[[Headbobber]] - This script makes an object bob up and down smoothly when you're pressing one or both of the horizontal/vertical axes.
 
*[[Headbobber]] - This script makes an object bob up and down smoothly when you're pressing one or both of the horizontal/vertical axes.
Line 29: Line 28:
 
*[[ToggleButton]] - Extends the Button class to create a toggle button.
 
*[[ToggleButton]] - Extends the Button class to create a toggle button.
 
*[[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.
 
*[[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.
 +
*[[Box_Script]] - Use this to make differently sized gui boxes with the same border width.
  
 
<b>Heads Up Display Scripts</b>
 
<b>Heads Up Display Scripts</b>

Revision as of 17:52, 24 April 2006

Camera Controls

  • Headbobber - This script makes an object bob up and down smoothly when you're pressing one or both of the horizontal/vertical axes.

Character Controller Scripts

Debugging Scripts

  • DebugConsole - A script to allow scrolling feedback from your scripts. (Was DebugGUIController)

General Concepts

  • AManagerClass - example on how to add easy access to a singleton class in a scene.
  • ToggleGravity - example how to toggle a property, in this case the global gravity setting, by the left mouse button.

General Purpose Effect Scripts

  • CameraFacingBillboard - Use this script on a billboard or similar object to make it align itself with the camera.
  • LookAtCameraYonly - Use this script on a billboard or other object to have it face the camera but only rotate on the Y axis.
  • Mathfx - This script contains a growing number of small and useful math functions. (Short for Mathf eXtended)
  • StopEmittingAfterDelay - After a configurable delay, particles will fade naturally, then finally the object will get destroyed with autodestruct.
  • Perlin Noise - Noise functions for smoothly moving objects around or anything else

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
  • GuiRatioFixer2 - Alternate script based on screen's aspect to use on a GUIText /GUITexture object to automatically adjust aspect ratio
  • ToggleButton - Extends the Button class to create a toggle button.
  • FadeIn - Allows you to show/hide a GUIText or GUITexture when pressing a key/button.
  • Box_Script - Use this to make differently sized gui boxes with the same border width.

Heads Up Display Scripts

Image Postprocessing Effects (require Unity Pro)

  • BloomEffect - Sometimes referred to as "glow", use this effect to make bright parts in your scene bleed.

Sound Scripts

  • JukeboxController - A very basic jukebox class. This can be used to manage multiple audio clips across different levels.
Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox