You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <allpages gapcontinue="Script_Toolbox" />
  </query-continue>
  <query>
    <pages>
      <page pageid="59" ns="0" title="ReactToAccelerometer">
        <revisions>
          <rev xml:space="preserve">This script controls the position of the object it is attached to using the device's [http://docs.unity3d.com/Documentation/ScriptReference/Input-acceleration.html acceleration], relative to its starting position. It is completely configurable how the input from the accelerometer is mapped on to the position of the object. 


== Public Variables ==
=== xInputMapping : InputAxis ===
This tells the script how to map the input from the accelerator onto the x axis.
=== xInputModifier : float ===
This multiplier is applied to the input on the x axis.
=== yInputMapping : InputAxis ===
This tells the script how to map the input from the accelerator onto the y axis.
=== xInputModifier : float ===
This multiplier is applied to the input on the y axis.
=== zInputMapping : InputAxis ===
This tells the script how to map the input from the accelerator onto the z axis.
=== zInputModifier : float ===
This multiplier is applied to the input on the z axis.
=== lerpSpeed : float ===
This is how fast the object will move in the scene. 


[[Category:API]]
[[Category:Mobile]]
[[Category:Premium Scripts]]</rev>
        </revisions>
      </page>
      <page pageid="78" ns="0" title="ResourceSingleton">
        <revisions>
          <rev xml:space="preserve">This class implements a way create a [http://en.wikipedia.org/wiki/Singleton_pattern Singleton] object that derives from MonoBehaviour and may be configured using the Inspector window of the Unity Editor.

A Singleton is a kind of object that is globally accessible. There is only one instance of this object allowed to exist at any given time. 

This is based upon work from the Unify Community wiki: [http://wiki.unity3d.com/index.php?title=Singleton#Generic_Based_Singleton_for_MonoBehaviours Generic Based Singleton for MonoBehaviours]

== Setup and Usage ==
To use this class, make a new class that derives from it, like this:

   public class GameOptionsManager : ResourceSingleton&lt;GameOptionsManager&gt; {
      int currentLevel = 0;
      List&lt;string&gt; levels = new List&lt;string&gt;();
      string GetCurrentLevel () { ... }
   };

To set up this class for proper usage, create an empty GameObject and attach the script to it. This empty GameObject must be named the same as your script (for the example above, ''GameOptionsManager''). Then drag the object into a folder named [http://docs.unity3d.com/Documentation/ScriptReference/Resources.html Resources] somewhere in your Project view. Once the prefab is created, delete the object from the Hierarchy. Classes that derive from ResourceSingleton should not be placed in the Hierarchy during runtime; only when they are being set up the first time.

Once the prefab is in your Resources directory, you may modify the public variables on it as you like. When the game is run, a copy of the prefab is instantiated in the scene when you request the '''instance''' of the variable (see below). By only accessing the prefab though the '''instance''' member and not putting it in the Hierarchy, you may load and re-load as many Unity levels as you want, while always having access to this same object.

To access this class from other scripts, use the public static '''instance''' member as follows:

   GameOptionsManager.instance.currentLevel = 3;
   Application.LoadLevel (GameOptionsManager.instance.GetCurrentLevel ());

== Public Variables ==
=== instance : T ===
This will return the only instance of this class allowed to exist. If there is no GameObject containing this object in the scene, a new one is copied out of the Resources folder. This is a static, read-only variable, and is the only way this deriving sub-classes should be accessed. 

== Virtual Functions ==
=== void Init () ===
This is where deriving sub-classes can initialize their data. It should be used instead of [http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.Start.html Start ()]. 
=== void OnAppQuit () ===
This function is what deriving sub-classes should use to do things when the application closes. 


[[Category:API]]
[[Category:Free Scripts]]
[[Category:Utility]]</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>