Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Types | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
iTween Class Reference

More...

Inheritance diagram for iTween:

Classes

class  Defaults
 A collection of baseline presets that iTween needs and utilizes if certain parameters are not provided. More...
 

Public Types

enum  EaseType {
  EaseType.easeInQuad, EaseType.easeOutQuad, EaseType.easeInOutQuad, EaseType.easeInCubic,
  EaseType.easeOutCubic, EaseType.easeInOutCubic, EaseType.easeInQuart, EaseType.easeOutQuart,
  EaseType.easeInOutQuart, EaseType.easeInQuint, EaseType.easeOutQuint, EaseType.easeInOutQuint,
  EaseType.easeInSine, EaseType.easeOutSine, EaseType.easeInOutSine, EaseType.easeInExpo,
  EaseType.easeOutExpo, EaseType.easeInOutExpo, EaseType.easeInCirc, EaseType.easeOutCirc,
  EaseType.easeInOutCirc, EaseType.linear, EaseType.spring, EaseType.bounce,
  EaseType.easeInBack, EaseType.easeOutBack, EaseType.easeInOutBack, EaseType.elastic,
  EaseType.punch
}
 The type of easing to use based on Robert Penner's open source easing equations (http://www.robertpenner.com/easing_terms_of_use.html). More...
 
enum  LoopType { LoopType.none, LoopType.loop, LoopType.pingPong }
 The type of loop (if any) to use. More...
 
enum  NamedValueColor { NamedValueColor._Color, NamedValueColor._SpecColor, NamedValueColor._Emission, NamedValueColor._ReflectColor }
 Many shaders use more than one color. Use can have iTween's Color methods operate on them by name. More...
 

Static Public Member Functions

static void AudioFrom (GameObject target, float volume, float pitch, float time)
 Instantly changes an AudioSource's volume and pitch then returns it to it's starting volume and pitch over time with MINIMUM customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied. More...
 
static void AudioFrom (GameObject target, Hashtable args)
 Instantly changes an AudioSource's volume and pitch then returns it to it's starting volume and pitch over time with FULL customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied. More...
 
static void AudioTo (GameObject target, float volume, float pitch, float time)
 Fades volume and pitch of an AudioSource with MINIMUM customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied. More...
 
static void AudioTo (GameObject target, Hashtable args)
 Fades volume and pitch of an AudioSource with FULL customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied. More...
 
static void AudioUpdate (GameObject target, Hashtable args)
 Similar to AudioTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. More...
 
static void AudioUpdate (GameObject target, float volume, float pitch, float time)
 Similar to AudioTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. More...
 
static void CameraFadeDepth (int depth)
 Changes a camera fade's texture. More...
 
static void CameraFadeDestroy ()
 Removes and destroyes a camera fade. More...
 
static void CameraFadeFrom (float amount, float time)
 Instantly changes the amount(transparency) of a camera fade and then returns it back over time with MINIMUM customization options. More...
 
static void CameraFadeFrom (Hashtable args)
 Instantly changes the amount(transparency) of a camera fade and then returns it back over time with FULL customization options. More...
 
static void CameraFadeTo (float amount, float time)
 Changes the amount(transparency) of a camera fade over time with MINIMUM customization options. More...
 
static void CameraFadeTo (Hashtable args)
 Changes the amount(transparency) of a camera fade over time with FULL customization options. More...
 
static Texture2D CameraTexture (Color color)
 Creates and returns a full-screen Texture2D for use with CameraFade. More...
 
static void ColorFrom (GameObject target, Color color, float time)
 Changes a GameObject's color values instantly then returns them to the provided properties over time with MINIMUM customization options. If a Text or Texture component is attached, it will become the target of the animation. More...
 
static void ColorFrom (GameObject target, Hashtable args)
 Changes a GameObject's color values instantly then returns them to the provided properties over time with FULL customization options. If a Text or Texture component is attached, it will become the target of the animation. More...
 
static void ColorTo (GameObject target, Color color, float time)
 Changes a GameObject's color values over time with MINIMUM customization options. If a Text or Texture component is attached, they will become the target of the animation. More...
 
static void ColorTo (GameObject target, Hashtable args)
 Changes a GameObject's color values over time with FULL customization options. If a Text or Texture component is attached, they will become the target of the animation. More...
 
static void ColorUpdate (GameObject target, Hashtable args)
 Similar to ColorTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. More...
 
static void ColorUpdate (GameObject target, Color color, float time)
 Similar to ColorTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. More...
 
static int Count ()
 Count all iTweens in current scene. More...
 
static int Count (string type)
 Count all iTweens in current scene of a particular type. More...
 
static int Count (GameObject target)
 Count all iTweens on a GameObject. More...
 
static int Count (GameObject target, string type)
 Count all iTweens on a GameObject of a particular type. More...
 
static void DrawLine (Vector3[] line)
 When called from an OnDrawGizmos() function it will draw a line through the provided array of Vector3s. More...
 
static void DrawLine (Vector3[] line, Color color)
 When called from an OnDrawGizmos() function it will draw a line through the provided array of Vector3s. More...
 
static void DrawLine (Transform[] line)
 When called from an OnDrawGizmos() function it will draw a line through the provided array of Transforms. More...
 
static void DrawLine (Transform[] line, Color color)
 When called from an OnDrawGizmos() function it will draw a line through the provided array of Transforms. More...
 
static void DrawLineGizmos (Vector3[] line)
 Draws a line through the provided array of Vector3s with Gizmos.DrawLine(). More...
 
static void DrawLineGizmos (Vector3[] line, Color color)
 Draws a line through the provided array of Vector3s with Gizmos.DrawLine(). More...
 
static void DrawLineGizmos (Transform[] line)
 Draws a line through the provided array of Transforms with Gizmos.DrawLine(). More...
 
static void DrawLineGizmos (Transform[] line, Color color)
 Draws a line through the provided array of Transforms with Gizmos.DrawLine(). More...
 
static void DrawLineHandles (Vector3[] line)
 Draws a line through the provided array of Vector3s with Handles.DrawLine(). More...
 
static void DrawLineHandles (Vector3[] line, Color color)
 Draws a line through the provided array of Vector3s with Handles.DrawLine(). More...
 
static void DrawLineHandles (Transform[] line)
 Draws a line through the provided array of Transforms with Handles.DrawLine(). More...
 
static void DrawLineHandles (Transform[] line, Color color)
 Draws a line through the provided array of Transforms with Handles.DrawLine(). More...
 
static void DrawPath (Vector3[] path)
 When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Vector3s. More...
 
static void DrawPath (Vector3[] path, Color color)
 When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Vector3s. More...
 
static void DrawPath (Transform[] path)
 When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Transforms. More...
 
static void DrawPath (Transform[] path, Color color)
 When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Transforms. More...
 
static void DrawPathGizmos (Vector3[] path)
 Draws a curved path through the provided array of Vector3s with Gizmos.DrawLine(). More...
 
static void DrawPathGizmos (Vector3[] path, Color color)
 Draws a curved path through the provided array of Vector3s with Gizmos.DrawLine(). More...
 
static void DrawPathGizmos (Transform[] path)
 Draws a curved path through the provided array of Transforms with Gizmos.DrawLine(). More...
 
static void DrawPathGizmos (Transform[] path, Color color)
 Draws a curved path through the provided array of Transforms with Gizmos.DrawLine(). More...
 
static void DrawPathHandles (Vector3[] path)
 Draws a curved path through the provided array of Vector3s with Handles.DrawLine(). More...
 
static void DrawPathHandles (Vector3[] path, Color color)
 Draws a curved path through the provided array of Vector3s with Handles.DrawLine(). More...
 
static void DrawPathHandles (Transform[] path)
 Draws a curved path through the provided array of Transforms with Handles.DrawLine(). More...
 
static void DrawPathHandles (Transform[] path, Color color)
 Draws a curved path through the provided array of Transforms with Handles.DrawLine(). More...
 
static void FadeFrom (GameObject target, float alpha, float time)
 Changes a GameObject's alpha value instantly then returns it to the provided alpha over time with MINIMUM customization options. If a Text or Texture component is attached, it will become the target of the animation. Identical to using ColorFrom and using the "a" parameter. More...
 
static void FadeFrom (GameObject target, Hashtable args)
 Changes a GameObject's alpha value instantly then returns it to the provided alpha over time with FULL customization options. If a Text or Texture component is attached, it will become the target of the animation. Identical to using ColorFrom and using the "a" parameter. More...
 
static void FadeTo (GameObject target, float alpha, float time)
 Changes a GameObject's alpha value over time with MINIMUM customization options. If a Text or Texture component is attached, it will become the target of the animation. Identical to using ColorTo and using the "a" parameter. More...
 
static void FadeTo (GameObject target, Hashtable args)
 Changes a GameObject's alpha value over time with FULL customization options. If a Text or Texture component is attached, it will become the target of the animation. Identical to using ColorTo and using the "a" parameter. More...
 
static void FadeUpdate (GameObject target, Hashtable args)
 Similar to FadeTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. More...
 
static void FadeUpdate (GameObject target, float alpha, float time)
 Similar to FadeTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. More...
 
static float FloatUpdate (float currentValue, float targetValue, float speed)
 Returns a float that is eased between a current and target value by the supplied speed. More...
 
static Hashtable Hash (params object[] args)
 Universal interface to help in the creation of Hashtables. Especially useful for C# users. More...
 
static void LookFrom (GameObject target, Vector3 looktarget, float time)
 Instantly rotates a GameObject to look at the supplied Vector3 then returns it to it's starting rotation over time with MINIMUM customization options. More...
 
static void LookFrom (GameObject target, Hashtable args)
 Instantly rotates a GameObject to look at a supplied Transform or Vector3 then returns it to it's starting rotation over time with FULL customization options. More...
 
static void LookTo (GameObject target, Vector3 looktarget, float time)
 Rotates a GameObject to look at the supplied Vector3 over time with MINIMUM customization options. More...
 
static void LookTo (GameObject target, Hashtable args)
 Rotates a GameObject to look at a supplied Transform or Vector3 over time with FULL customization options. More...
 
static void LookUpdate (GameObject target, Hashtable args)
 Similar to LookTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. More...
 
static void LookUpdate (GameObject target, Vector3 looktarget, float time)
 Similar to LookTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. More...
 
static void MoveAdd (GameObject target, Vector3 amount, float time)
 Translates a GameObject's position over time with MINIMUM customization options. More...
 
static void MoveAdd (GameObject target, Hashtable args)
 Translates a GameObject's position over time with FULL customization options. More...
 
static void MoveBy (GameObject target, Vector3 amount, float time)
 Adds the supplied coordinates to a GameObject's postion with MINIMUM customization options. More...
 
static void MoveBy (GameObject target, Hashtable args)
 Adds the supplied coordinates to a GameObject's position with FULL customization options. More...
 
static void MoveFrom (GameObject target, Vector3 position, float time)
 Instantly changes a GameObject's position to a supplied destination then returns it to it's starting position over time with MINIMUM customization options. More...
 
static void MoveFrom (GameObject target, Hashtable args)
 Instantly changes a GameObject's position to a supplied destination then returns it to it's starting position over time with FULL customization options. More...
 
static void MoveTo (GameObject target, Vector3 position, float time)
 Changes a GameObject's position over time to a supplied destination with MINIMUM customization options. More...
 
static void MoveTo (GameObject target, Hashtable args)
 Changes a GameObject's position over time to a supplied destination with FULL customization options. More...
 
static void MoveUpdate (GameObject target, Hashtable args)
 Similar to MoveTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. More...
 
static void MoveUpdate (GameObject target, Vector3 position, float time)
 Similar to MoveTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. More...
 
static float PathLength (Transform[] path)
 Returns the length of a curved path drawn through the provided array of Transforms. More...
 
static float PathLength (Vector3[] path)
 Returns the length of a curved path drawn through the provided array of Vector3s. More...
 
static void Pause (GameObject target)
 Pause all iTweens on a GameObject. More...
 
static void Pause (GameObject target, bool includechildren)
 Pause all iTweens on a GameObject including its children. More...
 
static void Pause (GameObject target, string type)
 Pause all iTweens on a GameObject of a particular type. </summar

Parameters
typeA System.String name of the type of iTween you would like to pause. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
More...
 
static void Pause (GameObject target, string type, bool includechildren)
 Pause all iTweens on a GameObject of a particular type including its children. </summar

Parameters
typeA System.String name of the type of iTween you would like to pause. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
More...
 
static void Pause ()
 Pause all iTweens in scene. More...
 
static void Pause (string type)
 Pause all iTweens in scene of a particular type. More...
 
static Vector3 PointOnPath (Transform[] path, float percent)
 Returns a Vector3 position on a path at the provided percentage More...
 
static Vector3 PointOnPath (Vector3[] path, float percent)
 Returns a Vector3 position on a path at the provided percentage More...
 
static void PunchPosition (GameObject target, Vector3 amount, float time)
 Applies a jolt of force to a GameObject's position and wobbles it back to its initial position with MINIMUM customization options. More...
 
static void PunchPosition (GameObject target, Hashtable args)
 Applies a jolt of force to a GameObject's position and wobbles it back to its initial position with FULL customization options. More...
 
static void PunchRotation (GameObject target, Vector3 amount, float time)
 Applies a jolt of force to a GameObject's rotation and wobbles it back to its initial rotation with MINIMUM customization options. More...
 
static void PunchRotation (GameObject target, Hashtable args)
 Applies a jolt of force to a GameObject's rotation and wobbles it back to its initial rotation with FULL customization options. More...
 
static void PunchScale (GameObject target, Vector3 amount, float time)
 Applies a jolt of force to a GameObject's scale and wobbles it back to its initial scale with MINIMUM customization options. More...
 
static void PunchScale (GameObject target, Hashtable args)
 Applies a jolt of force to a GameObject's scale and wobbles it back to its initial scale with FULL customization options. More...
 
static void PutOnPath (GameObject target, Vector3[] path, float percent)
 Puts a GameObject on a path at the provided percentage More...
 
static void PutOnPath (Transform target, Vector3[] path, float percent)
 Puts a GameObject on a path at the provided percentage More...
 
static void PutOnPath (GameObject target, Transform[] path, float percent)
 Puts a GameObject on a path at the provided percentage More...
 
static void PutOnPath (Transform target, Transform[] path, float percent)
 Puts a GameObject on a path at the provided percentage More...
 
static Rect RectUpdate (Rect currentValue, Rect targetValue, float speed)
 Returns a Rect that is eased between a current and target value by the supplied speed. More...
 
static void Resume (GameObject target)
 Resume all iTweens on a GameObject. More...
 
static void Resume (GameObject target, bool includechildren)
 Resume all iTweens on a GameObject including its children. More...
 
static void Resume (GameObject target, string type)
 Resume all iTweens on a GameObject of a particular type. </summar

Parameters
typeA System.String name of the type of iTween you would like to resume. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
More...
 
static void Resume (GameObject target, string type, bool includechildren)
 Resume all iTweens on a GameObject of a particular type including its children. </summar

Parameters
typeA System.String name of the type of iTween you would like to resume. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
More...
 
static void Resume ()
 Resume all iTweens in scene. More...
 
static void Resume (string type)
 Resume all iTweens in scene of a particular type. More...
 
static void RotateAdd (GameObject target, Vector3 amount, float time)
 Adds supplied Euler angles in degrees to a GameObject's rotation over time with MINIMUM customization options. More...
 
static void RotateAdd (GameObject target, Hashtable args)
 Adds supplied Euler angles in degrees to a GameObject's rotation over time with FULL customization options. More...
 
static void RotateBy (GameObject target, Vector3 amount, float time)
 Multiplies supplied values by 360 and rotates a GameObject by calculated amount over time with MINIMUM customization options. More...
 
static void RotateBy (GameObject target, Hashtable args)
 Multiplies supplied values by 360 and rotates a GameObject by calculated amount over time with FULL customization options. More...
 
static void RotateFrom (GameObject target, Vector3 rotation, float time)
 Instantly changes a GameObject's Euler angles in degrees then returns it to it's starting rotation over time (if allowed) with MINIMUM customization options. More...
 
static void RotateFrom (GameObject target, Hashtable args)
 Instantly changes a GameObject's Euler angles in degrees then returns it to it's starting rotation over time (if allowed) with FULL customization options. More...
 
static void RotateTo (GameObject target, Vector3 rotation, float time)
 Rotates a GameObject to the supplied Euler angles in degrees over time with MINIMUM customization options. More...
 
static void RotateTo (GameObject target, Hashtable args)
 Rotates a GameObject to the supplied Euler angles in degrees over time with FULL customization options. More...
 
static void RotateUpdate (GameObject target, Hashtable args)
 Similar to RotateTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. More...
 
static void RotateUpdate (GameObject target, Vector3 rotation, float time)
 Similar to RotateTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. More...
 
static void ScaleAdd (GameObject target, Vector3 amount, float time)
 Adds to a GameObject's scale over time with FULL customization options. More...
 
static void ScaleAdd (GameObject target, Hashtable args)
 Adds to a GameObject's scale over time with FULL customization options. More...
 
static void ScaleBy (GameObject target, Vector3 amount, float time)
 Multiplies a GameObject's scale over time with MINIMUM customization options. More...
 
static void ScaleBy (GameObject target, Hashtable args)
 Multiplies a GameObject's scale over time with FULL customization options. More...
 
static void ScaleFrom (GameObject target, Vector3 scale, float time)
 Instantly changes a GameObject's scale then returns it to it's starting scale over time with MINIMUM customization options. More...
 
static void ScaleFrom (GameObject target, Hashtable args)
 Instantly changes a GameObject's scale then returns it to it's starting scale over time with FULL customization options. More...
 
static void ScaleTo (GameObject target, Vector3 scale, float time)
 Changes a GameObject's scale over time with MINIMUM customization options. More...
 
static void ScaleTo (GameObject target, Hashtable args)
 Changes a GameObject's scale over time with FULL customization options. More...
 
static void ScaleUpdate (GameObject target, Hashtable args)
 Similar to ScaleTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. More...
 
static void ScaleUpdate (GameObject target, Vector3 scale, float time)
 Similar to ScaleTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. More...
 
static void ShakePosition (GameObject target, Vector3 amount, float time)
 Randomly shakes a GameObject's position by a diminishing amount over time with MINIMUM customization options. More...
 
static void ShakePosition (GameObject target, Hashtable args)
 Randomly shakes a GameObject's position by a diminishing amount over time with FULL customization options. More...
 
static void ShakeRotation (GameObject target, Vector3 amount, float time)
 Randomly shakes a GameObject's rotation by a diminishing amount over time with MINIMUM customization options. More...
 
static void ShakeRotation (GameObject target, Hashtable args)
 Randomly shakes a GameObject's rotation by a diminishing amount over time with FULL customization options. More...
 
static void ShakeScale (GameObject target, Vector3 amount, float time)
 Randomly shakes a GameObject's scale by a diminishing amount over time with MINIMUM customization options. More...
 
static void ShakeScale (GameObject target, Hashtable args)
 Randomly shakes a GameObject's scale by a diminishing amount over time with FULL customization options. More...
 
static void Stab (GameObject target, AudioClip audioclip, float delay)
 Plays an AudioClip once based on supplied volume and pitch and following any delay with MINIMUM customization options. AudioSource is optional as iTween will provide one. More...
 
static void Stab (GameObject target, Hashtable args)
 Plays an AudioClip once based on supplied volume and pitch and following any delay with FULL customization options. AudioSource is optional as iTween will provide one. More...
 
static void Stop ()
 Stop and destroy all Tweens in current scene. More...
 
static void Stop (string type)
 Stop and destroy all iTweens in current scene of a particular type. More...
 
static void Stop (GameObject target)
 Stop and destroy all iTweens on a GameObject. More...
 
static void Stop (GameObject target, bool includechildren)
 Stop and destroy all iTweens on a GameObject including its children. More...
 
static void Stop (GameObject target, string type)
 Stop and destroy all iTweens on a GameObject of a particular type. </summar

Parameters
typeA System.String name of the type of iTween you would like to stop. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
More...
 
static void Stop (GameObject target, string type, bool includechildren)
 Stop and destroy all iTweens on a GameObject of a particular type including its children. </summar

Parameters
typeA System.String name of the type of iTween you would like to stop. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
More...
 
static void ValueTo (GameObject target, Hashtable args)
 Returns a value to an 'oncallback' method interpolated between the supplied 'from' and 'to' values for application as desired. Requires an 'onupdate' callback that accepts the same type as the supplied 'from' and 'to' properties. More...
 
static Vector2 Vector2Update (Vector2 currentValue, Vector2 targetValue, float speed)
 Returns a Vector2 that is eased between a current and target value by the supplied speed. More...
 
static Vector3 Vector3Update (Vector3 currentValue, Vector3 targetValue, float speed)
 Returns a Vector3 that is eased between a current and target value by the supplied speed. More...
 

Public Attributes

iTween.EaseType easeType
 
string id
 
bool isRunning
 
LoopType loopType
 
float time
 

Static Public Attributes

static ArrayList tweens = new ArrayList()
 

Detailed Description

Version: 2.0.41

Author: Bob Berkebile (http://pixelplacement.com)

Support: http://itween.pixelplacement.com

Member Enumeration Documentation

The type of easing to use based on Robert Penner's open source easing equations (http://www.robertpenner.com/easing_terms_of_use.html).

Enumerator
easeInQuad 
easeOutQuad 
easeInOutQuad 
easeInCubic 
easeOutCubic 
easeInOutCubic 
easeInQuart 
easeOutQuart 
easeInOutQuart 
easeInQuint 
easeOutQuint 
easeInOutQuint 
easeInSine 
easeOutSine 
easeInOutSine 
easeInExpo 
easeOutExpo 
easeInOutExpo 
easeInCirc 
easeOutCirc 
easeInOutCirc 
linear 
spring 
bounce 
easeInBack 
easeOutBack 
easeInOutBack 
elastic 
punch 

The type of loop (if any) to use.

Enumerator
none 

Do not loop.

loop 

Rewind and replay.

pingPong 

Ping pong the animation back and forth.

Many shaders use more than one color. Use can have iTween's Color methods operate on them by name.

Enumerator
_Color 

The main color of a material. Used by default and not required for Color methods to work in iTween.

_SpecColor 

The specular color of a material (used in specular/glossy/vertexlit shaders).

_Emission 

The emissive color of a material (used in vertexlit shaders).

_ReflectColor 

The reflection color of the material (used in reflective shaders).

Member Function Documentation

static void iTween.AudioFrom ( GameObject  target,
float  volume,
float  pitch,
float  time 
)
inlinestatic

Instantly changes an AudioSource's volume and pitch then returns it to it's starting volume and pitch over time with MINIMUM customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied.

Parameters
targetA GameObject to be the target of the animation which holds the AudioSource to be changed.
volumefor the target level of volume. A System.Single
pitchfor the target pitch. A System.Single
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.AudioFrom ( GameObject  target,
Hashtable  args 
)
inlinestatic

Instantly changes an AudioSource's volume and pitch then returns it to it's starting volume and pitch over time with FULL customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied.

Parameters
audiosourceA AudioSource for which AudioSource to use.
volumeA System.Single or System.Double for the target level of volume.
pitchA System.Single or System.Double for the target pitch.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.AudioTo ( GameObject  target,
float  volume,
float  pitch,
float  time 
)
inlinestatic

Fades volume and pitch of an AudioSource with MINIMUM customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied.

Parameters
targetA GameObject to be the target of the animation which holds the AudioSource to be changed.
volumefor the target level of volume. A System.Single
pitchfor the target pitch. A System.Single
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.AudioTo ( GameObject  target,
Hashtable  args 
)
inlinestatic

Fades volume and pitch of an AudioSource with FULL customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied.

Parameters
audiosourceA AudioSource for which AudioSource to use.
volumeA System.Single or System.Double for the target level of volume.
pitchA System.Single or System.Double for the target pitch.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.AudioUpdate ( GameObject  target,
Hashtable  args 
)
inlinestatic

Similar to AudioTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType.

Parameters
audiosourceA AudioSource for which AudioSource to use.
volumeA System.Single or System.Double for the target level of volume.
pitchA System.Single or System.Double for the target pitch.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
static void iTween.AudioUpdate ( GameObject  target,
float  volume,
float  pitch,
float  time 
)
inlinestatic

Similar to AudioTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType.

Parameters
targetA GameObject to be the target of the animation.
volumeA System.Single for the target level of volume.
pitchA System.Single for the target pitch.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.CameraFadeDepth ( int  depth)
inlinestatic

Changes a camera fade's texture.

Parameters
depthA System.Int32
static void iTween.CameraFadeDestroy ( )
inlinestatic

Removes and destroyes a camera fade.

static void iTween.CameraFadeFrom ( float  amount,
float  time 
)
inlinestatic

Instantly changes the amount(transparency) of a camera fade and then returns it back over time with MINIMUM customization options.

Parameters
amountA System.Single or System.Double for how transparent the Texture2D that the camera fade uses is.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.CameraFadeFrom ( Hashtable  args)
inlinestatic

Instantly changes the amount(transparency) of a camera fade and then returns it back over time with FULL customization options.

Parameters
amountA System.Single or System.Double for how transparent the Texture2D that the camera fade uses is.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.CameraFadeTo ( float  amount,
float  time 
)
inlinestatic

Changes the amount(transparency) of a camera fade over time with MINIMUM customization options.

Parameters
amountA System.Single or System.Double for how transparent the Texture2D that the camera fade uses is.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.CameraFadeTo ( Hashtable  args)
inlinestatic

Changes the amount(transparency) of a camera fade over time with FULL customization options.

Parameters
amountA System.Single or System.Double for how transparent the Texture2D that the camera fade uses is.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static Texture2D iTween.CameraTexture ( Color  color)
inlinestatic

Creates and returns a full-screen Texture2D for use with CameraFade.

Returns
Texture2D
Parameters
colorColor
static void iTween.ColorFrom ( GameObject  target,
Color  color,
float  time 
)
inlinestatic

Changes a GameObject's color values instantly then returns them to the provided properties over time with MINIMUM customization options. If a Text or Texture component is attached, it will become the target of the animation.

Parameters
targetA GameObject to be the target of the animation.
colorA Color to change the GameObject's color to.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ColorFrom ( GameObject  target,
Hashtable  args 
)
inlinestatic

Changes a GameObject's color values instantly then returns them to the provided properties over time with FULL customization options. If a Text or Texture component is attached, it will become the target of the animation.

Parameters
colorA Color to change the GameObject's color to.
rA System.Single or System.Double for the individual setting of the color red.
gA System.Single or System.Double for the individual setting of the color green.
bA System.Single or System.Double for the individual setting of the color green.
aA System.Single or System.Double for the individual setting of the alpha.
namedcolorvalueA NamedColorValue or System.String for the individual setting of the alpha.
includechildrenA System.Boolean for whether or not to include children of this GameObject. True by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.ColorTo ( GameObject  target,
Color  color,
float  time 
)
inlinestatic

Changes a GameObject's color values over time with MINIMUM customization options. If a Text or Texture component is attached, they will become the target of the animation.

Parameters
targetA GameObject to be the target of the animation.
colorA Color to change the GameObject's color to.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ColorTo ( GameObject  target,
Hashtable  args 
)
inlinestatic

Changes a GameObject's color values over time with FULL customization options. If a Text or Texture component is attached, they will become the target of the animation.

Parameters
colorA Color to change the GameObject's color to.
rA System.Single or System.Double for the individual setting of the color red.
gA System.Single or System.Double for the individual setting of the color green.
bA System.Single or System.Double for the individual setting of the color green.
aA System.Single or System.Double for the individual setting of the alpha.
namedcolorvalueA NamedColorValue or System.String for the individual setting of the alpha.
includechildrenA System.Boolean for whether or not to include children of this GameObject. True by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.ColorUpdate ( GameObject  target,
Hashtable  args 
)
inlinestatic

Similar to ColorTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType.

Parameters
colorA Color to change the GameObject's color to.
rA System.Single or System.Double for the individual setting of the color red.
gA System.Single or System.Double for the individual setting of the color green.
bA System.Single or System.Double for the individual setting of the color green.
aA System.Single or System.Double for the individual setting of the alpha.
namedcolorvalueA NamedColorValue or System.String for the individual setting of the alpha.
includechildrenA System.Boolean for whether or not to include children of this GameObject. True by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
static void iTween.ColorUpdate ( GameObject  target,
Color  color,
float  time 
)
inlinestatic

Similar to ColorTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType.

Parameters
targetA GameObject to be the target of the animation.
colorA Color to change the GameObject's color to.
timeA System.Single for the time in seconds the animation will take to complete.
static int iTween.Count ( )
inlinestatic

Count all iTweens in current scene.

static int iTween.Count ( string  type)
inlinestatic

Count all iTweens in current scene of a particular type.

Parameters
typeA System.String name of the type of iTween you would like to stop. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
static int iTween.Count ( GameObject  target)
inlinestatic

Count all iTweens on a GameObject.

static int iTween.Count ( GameObject  target,
string  type 
)
inlinestatic

Count all iTweens on a GameObject of a particular type.

Parameters
typeA System.String name of the type of iTween you would like to count. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
static void iTween.DrawLine ( Vector3[]  line)
inlinestatic

When called from an OnDrawGizmos() function it will draw a line through the provided array of Vector3s.

Parameters
lineA Vector3s[]
static void iTween.DrawLine ( Vector3[]  line,
Color  color 
)
inlinestatic

When called from an OnDrawGizmos() function it will draw a line through the provided array of Vector3s.

Parameters
lineA Vector3s[]
colorA Color
static void iTween.DrawLine ( Transform[]  line)
inlinestatic

When called from an OnDrawGizmos() function it will draw a line through the provided array of Transforms.

Parameters
lineA Transform[]
static void iTween.DrawLine ( Transform[]  line,
Color  color 
)
inlinestatic

When called from an OnDrawGizmos() function it will draw a line through the provided array of Transforms.

Parameters
lineA Transform[]
colorA Color
static void iTween.DrawLineGizmos ( Vector3[]  line)
inlinestatic

Draws a line through the provided array of Vector3s with Gizmos.DrawLine().

Parameters
lineA Vector3s[]
static void iTween.DrawLineGizmos ( Vector3[]  line,
Color  color 
)
inlinestatic

Draws a line through the provided array of Vector3s with Gizmos.DrawLine().

Parameters
lineA Vector3s[]
colorA Color
static void iTween.DrawLineGizmos ( Transform[]  line)
inlinestatic

Draws a line through the provided array of Transforms with Gizmos.DrawLine().

Parameters
lineA Transform[]
static void iTween.DrawLineGizmos ( Transform[]  line,
Color  color 
)
inlinestatic

Draws a line through the provided array of Transforms with Gizmos.DrawLine().

Parameters
lineA Transform[]
colorA Color
static void iTween.DrawLineHandles ( Vector3[]  line)
inlinestatic

Draws a line through the provided array of Vector3s with Handles.DrawLine().

Parameters
lineA Vector3s[]
static void iTween.DrawLineHandles ( Vector3[]  line,
Color  color 
)
inlinestatic

Draws a line through the provided array of Vector3s with Handles.DrawLine().

Parameters
lineA Vector3s[]
colorA Color
static void iTween.DrawLineHandles ( Transform[]  line)
inlinestatic

Draws a line through the provided array of Transforms with Handles.DrawLine().

Parameters
lineA Transform[]
static void iTween.DrawLineHandles ( Transform[]  line,
Color  color 
)
inlinestatic

Draws a line through the provided array of Transforms with Handles.DrawLine().

Parameters
lineA Transform[]
colorA Color
static void iTween.DrawPath ( Vector3[]  path)
inlinestatic

When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Vector3s.

Parameters
pathA Vector3s[]
static void iTween.DrawPath ( Vector3[]  path,
Color  color 
)
inlinestatic

When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Vector3s.

Parameters
pathA Vector3s[]
colorA Color
static void iTween.DrawPath ( Transform[]  path)
inlinestatic

When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Transforms.

Parameters
pathA Transform[]
static void iTween.DrawPath ( Transform[]  path,
Color  color 
)
inlinestatic

When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Transforms.

Parameters
pathA Transform[]
colorA Color
static void iTween.DrawPathGizmos ( Vector3[]  path)
inlinestatic

Draws a curved path through the provided array of Vector3s with Gizmos.DrawLine().

Parameters
pathA Vector3s[]
static void iTween.DrawPathGizmos ( Vector3[]  path,
Color  color 
)
inlinestatic

Draws a curved path through the provided array of Vector3s with Gizmos.DrawLine().

Parameters
pathA Vector3s[]
colorA Color
static void iTween.DrawPathGizmos ( Transform[]  path)
inlinestatic

Draws a curved path through the provided array of Transforms with Gizmos.DrawLine().

Parameters
pathA Transform[]
static void iTween.DrawPathGizmos ( Transform[]  path,
Color  color 
)
inlinestatic

Draws a curved path through the provided array of Transforms with Gizmos.DrawLine().

Parameters
pathA Transform[]
colorA Color
static void iTween.DrawPathHandles ( Vector3[]  path)
inlinestatic

Draws a curved path through the provided array of Vector3s with Handles.DrawLine().

Parameters
pathA Vector3s[]
static void iTween.DrawPathHandles ( Vector3[]  path,
Color  color 
)
inlinestatic

Draws a curved path through the provided array of Vector3s with Handles.DrawLine().

Parameters
pathA Vector3s[]
colorA Color
static void iTween.DrawPathHandles ( Transform[]  path)
inlinestatic

Draws a curved path through the provided array of Transforms with Handles.DrawLine().

Parameters
pathA Transform[]
static void iTween.DrawPathHandles ( Transform[]  path,
Color  color 
)
inlinestatic

Draws a curved path through the provided array of Transforms with Handles.DrawLine().

Parameters
pathA Transform[]
colorA Color
static void iTween.FadeFrom ( GameObject  target,
float  alpha,
float  time 
)
inlinestatic

Changes a GameObject's alpha value instantly then returns it to the provided alpha over time with MINIMUM customization options. If a Text or Texture component is attached, it will become the target of the animation. Identical to using ColorFrom and using the "a" parameter.

Parameters
targetA GameObject to be the target of the animation.
alphaA System.Single for the final alpha value of the animation.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.FadeFrom ( GameObject  target,
Hashtable  args 
)
inlinestatic

Changes a GameObject's alpha value instantly then returns it to the provided alpha over time with FULL customization options. If a Text or Texture component is attached, it will become the target of the animation. Identical to using ColorFrom and using the "a" parameter.

Parameters
alphaA System.Single or System.Double for the initial alpha value of the animation.
amountA System.Single or System.Double for the initial alpha value of the animation.
includechildrenA System.Boolean for whether or not to include children of this GameObject. True by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.FadeTo ( GameObject  target,
float  alpha,
float  time 
)
inlinestatic

Changes a GameObject's alpha value over time with MINIMUM customization options. If a Text or Texture component is attached, it will become the target of the animation. Identical to using ColorTo and using the "a" parameter.

Parameters
targetA GameObject to be the target of the animation.
alphaA System.Single for the final alpha value of the animation.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.FadeTo ( GameObject  target,
Hashtable  args 
)
inlinestatic

Changes a GameObject's alpha value over time with FULL customization options. If a Text or Texture component is attached, it will become the target of the animation. Identical to using ColorTo and using the "a" parameter.

Parameters
alphaA System.Single or System.Double for the final alpha value of the animation.
amountA System.Single or System.Double for the final alpha value of the animation.
includechildrenA System.Boolean for whether or not to include children of this GameObject. True by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.FadeUpdate ( GameObject  target,
Hashtable  args 
)
inlinestatic

Similar to FadeTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType.

Parameters
alphaA System.Single or System.Double for the final alpha value of the animation.
includechildrenA System.Boolean for whether or not to include children of this GameObject. True by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
static void iTween.FadeUpdate ( GameObject  target,
float  alpha,
float  time 
)
inlinestatic

Similar to FadeTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType.

Parameters
targetA GameObject to be the target of the animation.
alphaA System.Single for the final alpha value of the animation.
timeA System.Single for the time in seconds the animation will take to complete.
static float iTween.FloatUpdate ( float  currentValue,
float  targetValue,
float  speed 
)
inlinestatic

Returns a float that is eased between a current and target value by the supplied speed.

Returns
A System.Single
Parameters
currentValueA System.Single the starting or initial value
targetValueA System.Single the target value that the current value will be eased to.
speedA System.Single to be used as rate of speed (larger number equals faster animation)
static Hashtable iTween.Hash ( params object[]  args)
inlinestatic

Universal interface to help in the creation of Hashtables. Especially useful for C# users.

Parameters
argsA System.Object[] of alternating name value pairs. For example "time",1,"delay",2...
Returns
A Hashtable
static void iTween.LookFrom ( GameObject  target,
Vector3  looktarget,
float  time 
)
inlinestatic

Instantly rotates a GameObject to look at the supplied Vector3 then returns it to it's starting rotation over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
looktargetA Vector3 to be the Vector3 that the target will look towards.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.LookFrom ( GameObject  target,
Hashtable  args 
)
inlinestatic

Instantly rotates a GameObject to look at a supplied Transform or Vector3 then returns it to it's starting rotation over time with FULL customization options.

Parameters
looktargetA Transform or Vector3 for a target the GameObject will look at.
axisA System.String. Restricts rotation to the supplied axis only.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.LookTo ( GameObject  target,
Vector3  looktarget,
float  time 
)
inlinestatic

Rotates a GameObject to look at the supplied Vector3 over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
looktargetA Vector3 to be the Vector3 that the target will look towards.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.LookTo ( GameObject  target,
Hashtable  args 
)
inlinestatic

Rotates a GameObject to look at a supplied Transform or Vector3 over time with FULL customization options.

Parameters
looktargetA Transform or Vector3 for a target the GameObject will look at.
axisA System.String. Restricts rotation to the supplied axis only.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.LookUpdate ( GameObject  target,
Hashtable  args 
)
inlinestatic

Similar to LookTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType.

Parameters
looktargetA Transform or Vector3 for a target the GameObject will look at.
axisA System.String. Restricts rotation to the supplied axis only.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
static void iTween.LookUpdate ( GameObject  target,
Vector3  looktarget,
float  time 
)
inlinestatic

Similar to LookTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType.

Parameters
targetA GameObject to be the target of the animation.
looktargetA Vector3 for a target the GameObject will look at.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.MoveAdd ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Translates a GameObject's position over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the amount of change in position to move the GameObject.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.MoveAdd ( GameObject  target,
Hashtable  args 
)
inlinestatic

Translates a GameObject's position over time with FULL customization options.

Parameters
amountA Vector3 for the amount of change in position to move the GameObject.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
orienttopathA System.Boolean for whether or not the GameObject will orient to its direction of travel. False by default.
looktargetA Vector3 or A Transform for a target the GameObject will look at.
looktimeA System.Single or System.Double for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
axisA System.String. Restricts rotation to the supplied axis only.
spaceA Space or System.String for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.MoveBy ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Adds the supplied coordinates to a GameObject's postion with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the amount of change in position to move the GameObject.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.MoveBy ( GameObject  target,
Hashtable  args 
)
inlinestatic

Adds the supplied coordinates to a GameObject's position with FULL customization options.

Parameters
amountA Vector3 for the amount of change in position to move the GameObject.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
orienttopathA System.Boolean for whether or not the GameObject will orient to its direction of travel. False by default.
looktargetA Vector3 or A Transform for a target the GameObject will look at.
looktimeA System.Single or System.Double for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
axisA System.String. Restricts rotation to the supplied axis only.
spaceA Space or System.String for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.MoveFrom ( GameObject  target,
Vector3  position,
float  time 
)
inlinestatic

Instantly changes a GameObject's position to a supplied destination then returns it to it's starting position over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
positionA Vector3 for the destination Vector3.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.MoveFrom ( GameObject  target,
Hashtable  args 
)
inlinestatic

Instantly changes a GameObject's position to a supplied destination then returns it to it's starting position over time with FULL customization options.

Parameters
positionA Transform or Vector3 for a point in space the GameObject will animate to.
pathA Transform[] or Vector3[] for a list of points to draw a Catmull-Rom through for a curved animation path.
movetopathA System.Boolean for whether to automatically generate a curve from the GameObject's current position to the beginning of the path. True by default.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
orienttopathA System.Boolean for whether or not the GameObject will orient to its direction of travel. False by default.
looktargetA Vector3 or A Transform for a target the GameObject will look at.
looktimeA System.Single or System.Double for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
lookaheadA System.Single or System.Double for how much of a percentage to look ahead on a path to influence how strict "orientopath" is.
islocalA System.Boolean for whether to animate in world space or relative to the parent. False by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.MoveTo ( GameObject  target,
Vector3  position,
float  time 
)
inlinestatic

Changes a GameObject's position over time to a supplied destination with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
positionA Vector3 for the destination Vector3.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.MoveTo ( GameObject  target,
Hashtable  args 
)
inlinestatic

Changes a GameObject's position over time to a supplied destination with FULL customization options.

Parameters
positionA Transform or Vector3 for a point in space the GameObject will animate to.
pathA Transform[] or Vector3[] for a list of points to draw a Catmull-Rom through for a curved animation path.
movetopathA System.Boolean for whether to automatically generate a curve from the GameObject's current position to the beginning of the path. True by default.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
orienttopathA System.Boolean for whether or not the GameObject will orient to its direction of travel. False by default.
looktargetA Vector3 or A Transform for a target the GameObject will look at.
looktimeA System.Single or System.Double for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
lookaheadA System.Single or System.Double for how much of a percentage to look ahead on a path to influence how strict "orientopath" is.
axisA System.String. Restricts rotation to the supplied axis only.
islocalA System.Boolean for whether to animate in world space or relative to the parent. False by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.MoveUpdate ( GameObject  target,
Hashtable  args 
)
inlinestatic

Similar to MoveTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType.

Parameters
positionA Transform or Vector3 for a point in space the GameObject will animate to.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
islocalA System.Boolean for whether to animate in world space or relative to the parent. False be default.
orienttopathA System.Boolean for whether or not the GameObject will orient to its direction of travel. False by default.
looktargetA Vector3 or A Transform for a target the GameObject will look at.
looktimeA System.Single or System.Double for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
axisA System.String. Restricts rotation to the supplied axis only.
static void iTween.MoveUpdate ( GameObject  target,
Vector3  position,
float  time 
)
inlinestatic

Similar to MoveTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType.

Parameters
targetA GameObject to be the target of the animation.
positionA Vector3 for a point in space the GameObject will animate to.
timeA System.Single for the time in seconds the animation will take to complete.
static float iTween.PathLength ( Transform[]  path)
inlinestatic

Returns the length of a curved path drawn through the provided array of Transforms.

Returns
A System.Single
Parameters
pathA Transform[]
static float iTween.PathLength ( Vector3[]  path)
inlinestatic

Returns the length of a curved path drawn through the provided array of Vector3s.

Returns
The length.
Parameters
pathA Vector3[]
static void iTween.Pause ( GameObject  target)
inlinestatic

Pause all iTweens on a GameObject.

static void iTween.Pause ( GameObject  target,
bool  includechildren 
)
inlinestatic

Pause all iTweens on a GameObject including its children.

static void iTween.Pause ( GameObject  target,
string  type 
)
inlinestatic

Pause all iTweens on a GameObject of a particular type. </summar

Parameters
typeA System.String name of the type of iTween you would like to pause. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.

static void iTween.Pause ( GameObject  target,
string  type,
bool  includechildren 
)
inlinestatic

Pause all iTweens on a GameObject of a particular type including its children. </summar

Parameters
typeA System.String name of the type of iTween you would like to pause. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.

static void iTween.Pause ( )
inlinestatic

Pause all iTweens in scene.

static void iTween.Pause ( string  type)
inlinestatic

Pause all iTweens in scene of a particular type.

Parameters
typeA System.String name of the type of iTween you would like to pause. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
static Vector3 iTween.PointOnPath ( Transform[]  path,
float  percent 
)
inlinestatic

Returns a Vector3 position on a path at the provided percentage

Parameters
pathA Transform[]
percentA System.Single
Returns
A Vector3
static Vector3 iTween.PointOnPath ( Vector3[]  path,
float  percent 
)
inlinestatic

Returns a Vector3 position on a path at the provided percentage

Parameters
pathA Vector3[]
percentA System.Single
Returns
A Vector3
static void iTween.PunchPosition ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Applies a jolt of force to a GameObject's position and wobbles it back to its initial position with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the magnitude of the punch.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.PunchPosition ( GameObject  target,
Hashtable  args 
)
inlinestatic

Applies a jolt of force to a GameObject's position and wobbles it back to its initial position with FULL customization options.

Parameters
amountA Vector3 for the magnitude of shake.
xA System.Single or System.Double for the individual setting of the x magnitude.
yA System.Single or System.Double for the individual setting of the y magnitude.
zA System.Single or System.Double for the individual setting of the z magnitude.
spaceA Space for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
looktargetA Vector3 or A Transform for a target the GameObject will look at.
looktimeA System.Single or System.Double for the time in seconds the object will take to look at either the "looktarget".
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed. (only "loop" is allowed with punches)
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.PunchRotation ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Applies a jolt of force to a GameObject's rotation and wobbles it back to its initial rotation with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the magnitude of the punch.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.PunchRotation ( GameObject  target,
Hashtable  args 
)
inlinestatic

Applies a jolt of force to a GameObject's rotation and wobbles it back to its initial rotation with FULL customization options.

Parameters
amountA Vector3 for the magnitude of shake.
xA System.Single or System.Double for the individual setting of the x magnitude.
yA System.Single or System.Double for the individual setting of the y magnitude.
zA System.Single or System.Double for the individual setting of the z magnitude.
spaceA Space for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed. (only "loop" is allowed with punches)
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.PunchScale ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Applies a jolt of force to a GameObject's scale and wobbles it back to its initial scale with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the magnitude of the punch.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.PunchScale ( GameObject  target,
Hashtable  args 
)
inlinestatic

Applies a jolt of force to a GameObject's scale and wobbles it back to its initial scale with FULL customization options.

Parameters
amountA Vector3 for the magnitude of shake.
xA System.Single or System.Double for the individual setting of the x magnitude.
yA System.Single or System.Double for the individual setting of the y magnitude.
zA System.Single or System.Double for the individual setting of the z magnitude.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed. (only "loop" is allowed with punches)
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.PutOnPath ( GameObject  target,
Vector3[]  path,
float  percent 
)
inlinestatic

Puts a GameObject on a path at the provided percentage

Parameters
targetA GameObject
pathA Vector3[]
percentA System.Single
static void iTween.PutOnPath ( Transform  target,
Vector3[]  path,
float  percent 
)
inlinestatic

Puts a GameObject on a path at the provided percentage

Parameters
targetA Transform
pathA Vector3[]
percentA System.Single
static void iTween.PutOnPath ( GameObject  target,
Transform[]  path,
float  percent 
)
inlinestatic

Puts a GameObject on a path at the provided percentage

Parameters
targetA GameObject
pathA Transform[]
percentA System.Single
static void iTween.PutOnPath ( Transform  target,
Transform[]  path,
float  percent 
)
inlinestatic

Puts a GameObject on a path at the provided percentage

Parameters
targetA Transform
pathA Transform[]
percentA System.Single
static Rect iTween.RectUpdate ( Rect  currentValue,
Rect  targetValue,
float  speed 
)
inlinestatic

Returns a Rect that is eased between a current and target value by the supplied speed.

Returns
A <see cref="Rect"/
Parameters
currentValueA Rect the starting or initial value
targetValueA Rect the target value that the current value will be eased to.
speedA System.Single to be used as rate of speed (larger number equals faster animation)
static void iTween.Resume ( GameObject  target)
inlinestatic

Resume all iTweens on a GameObject.

static void iTween.Resume ( GameObject  target,
bool  includechildren 
)
inlinestatic

Resume all iTweens on a GameObject including its children.

static void iTween.Resume ( GameObject  target,
string  type 
)
inlinestatic

Resume all iTweens on a GameObject of a particular type. </summar

Parameters
typeA System.String name of the type of iTween you would like to resume. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.

static void iTween.Resume ( GameObject  target,
string  type,
bool  includechildren 
)
inlinestatic

Resume all iTweens on a GameObject of a particular type including its children. </summar

Parameters
typeA System.String name of the type of iTween you would like to resume. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.

static void iTween.Resume ( )
inlinestatic

Resume all iTweens in scene.

static void iTween.Resume ( string  type)
inlinestatic

Resume all iTweens in scene of a particular type.

Parameters
typeA System.String name of the type of iTween you would like to resume. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
static void iTween.RotateAdd ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Adds supplied Euler angles in degrees to a GameObject's rotation over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the amount of Euler angles in degrees to add to the current rotation of the GameObject.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.RotateAdd ( GameObject  target,
Hashtable  args 
)
inlinestatic

Adds supplied Euler angles in degrees to a GameObject's rotation over time with FULL customization options.

Parameters
amountA Vector3 for the amount of Euler angles in degrees to add to the current rotation of the GameObject.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
spaceA Space or System.String for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.RotateBy ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Multiplies supplied values by 360 and rotates a GameObject by calculated amount over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the amount to be multiplied by 360 to rotate the GameObject.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.RotateBy ( GameObject  target,
Hashtable  args 
)
inlinestatic

Multiplies supplied values by 360 and rotates a GameObject by calculated amount over time with FULL customization options.

Parameters
amountA Vector3 for the amount to be multiplied by 360 to rotate the GameObject.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
spaceA Space or System.String for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
islocalA System.Boolean for whether to animate in world space or relative to the parent. False by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.RotateFrom ( GameObject  target,
Vector3  rotation,
float  time 
)
inlinestatic

Instantly changes a GameObject's Euler angles in degrees then returns it to it's starting rotation over time (if allowed) with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
rotationA Vector3 for the target Euler angles in degrees to rotate from.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.RotateFrom ( GameObject  target,
Hashtable  args 
)
inlinestatic

Instantly changes a GameObject's Euler angles in degrees then returns it to it's starting rotation over time (if allowed) with FULL customization options.

Parameters
rotationA Transform or Vector3 for the target Euler angles in degrees to rotate to.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
islocalA System.Boolean for whether to animate in world space or relative to the parent. False by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.RotateTo ( GameObject  target,
Vector3  rotation,
float  time 
)
inlinestatic

Rotates a GameObject to the supplied Euler angles in degrees over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
rotationA Vector3 for the target Euler angles in degrees to rotate to.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.RotateTo ( GameObject  target,
Hashtable  args 
)
inlinestatic

Rotates a GameObject to the supplied Euler angles in degrees over time with FULL customization options.

Parameters
rotationA Transform or Vector3 for the target Euler angles in degrees to rotate to.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
islocalA System.Boolean for whether to animate in world space or relative to the parent. False by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.RotateUpdate ( GameObject  target,
Hashtable  args 
)
inlinestatic

Similar to RotateTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType.

Parameters
rotationA Transform or Vector3 for the target Euler angles in degrees to rotate to.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
islocalA System.Boolean for whether to animate in world space or relative to the parent. False by default.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
static void iTween.RotateUpdate ( GameObject  target,
Vector3  rotation,
float  time 
)
inlinestatic

Similar to RotateTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType.

Parameters
targetA GameObject to be the target of the animation.
rotationA Vector3 for the target Euler angles in degrees to rotate to.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ScaleAdd ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Adds to a GameObject's scale over time with FULL customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the amount of scale to be added to the GameObject's current scale.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ScaleAdd ( GameObject  target,
Hashtable  args 
)
inlinestatic

Adds to a GameObject's scale over time with FULL customization options.

Parameters
amountA Vector3 for the amount to be added to the GameObject's current scale.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.ScaleBy ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Multiplies a GameObject's scale over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the amount of scale to be multiplied by the GameObject's current scale.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ScaleBy ( GameObject  target,
Hashtable  args 
)
inlinestatic

Multiplies a GameObject's scale over time with FULL customization options.

Parameters
amountA Vector3 for the amount to be multiplied to the GameObject's current scale.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.ScaleFrom ( GameObject  target,
Vector3  scale,
float  time 
)
inlinestatic

Instantly changes a GameObject's scale then returns it to it's starting scale over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
scaleA Vector3 for the final scale.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ScaleFrom ( GameObject  target,
Hashtable  args 
)
inlinestatic

Instantly changes a GameObject's scale then returns it to it's starting scale over time with FULL customization options.

Parameters
scaleA Transform or Vector3 for the final scale.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.ScaleTo ( GameObject  target,
Vector3  scale,
float  time 
)
inlinestatic

Changes a GameObject's scale over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
scaleA Vector3 for the final scale.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ScaleTo ( GameObject  target,
Hashtable  args 
)
inlinestatic

Changes a GameObject's scale over time with FULL customization options.

Parameters
scaleA Transform or Vector3 for the final scale.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.ScaleUpdate ( GameObject  target,
Hashtable  args 
)
inlinestatic

Similar to ScaleTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType.

Parameters
scaleA Transform or Vector3 for the final scale.
xA System.Single or System.Double for the individual setting of the x axis.
yA System.Single or System.Double for the individual setting of the y axis.
zA System.Single or System.Double for the individual setting of the z axis.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
static void iTween.ScaleUpdate ( GameObject  target,
Vector3  scale,
float  time 
)
inlinestatic

Similar to ScaleTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType.

Parameters
targetA GameObject to be the target of the animation.
scaleA Vector3 for the final scale.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ShakePosition ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Randomly shakes a GameObject's position by a diminishing amount over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the magnitude of shake.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ShakePosition ( GameObject  target,
Hashtable  args 
)
inlinestatic

Randomly shakes a GameObject's position by a diminishing amount over time with FULL customization options.

Parameters
amountA Vector3 for the magnitude of shake.
xA System.Single or System.Double for the individual setting of the x magnitude.
yA System.Single or System.Double for the individual setting of the y magnitude.
zA System.Single or System.Double for the individual setting of the z magnitude.
spaceA Space for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
orienttopathA System.Boolean for whether or not the GameObject will orient to its direction of travel. False by default.
looktargetA Vector3 or A Transform for a target the GameObject will look at.
looktimeA System.Single or System.Double for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed. (only "loop" is allowed with shakes)
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.ShakeRotation ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Randomly shakes a GameObject's rotation by a diminishing amount over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the magnitude of shake.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ShakeRotation ( GameObject  target,
Hashtable  args 
)
inlinestatic

Randomly shakes a GameObject's rotation by a diminishing amount over time with FULL customization options.

Parameters
amountA Vector3 for the magnitude of shake.
xA System.Single or System.Double for the individual setting of the x magnitude.
yA System.Single or System.Double for the individual setting of the y magnitude.
zA System.Single or System.Double for the individual setting of the z magnitude.
spaceA Space for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed. (only "loop" is allowed with shakes)
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.ShakeScale ( GameObject  target,
Vector3  amount,
float  time 
)
inlinestatic

Randomly shakes a GameObject's scale by a diminishing amount over time with MINIMUM customization options.

Parameters
targetA GameObject to be the target of the animation.
amountA Vector3 for the magnitude of shake.
timeA System.Single for the time in seconds the animation will take to complete.
static void iTween.ShakeScale ( GameObject  target,
Hashtable  args 
)
inlinestatic

Randomly shakes a GameObject's scale by a diminishing amount over time with FULL customization options.

Parameters
amountA Vector3 for the magnitude of shake.
xA System.Single or System.Double for the individual setting of the x magnitude.
yA System.Single or System.Double for the individual setting of the y magnitude.
zA System.Single or System.Double for the individual setting of the z magnitude.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed. (only "loop" is allowed with shakes)
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.Stab ( GameObject  target,
AudioClip  audioclip,
float  delay 
)
inlinestatic

Plays an AudioClip once based on supplied volume and pitch and following any delay with MINIMUM customization options. AudioSource is optional as iTween will provide one.

Parameters
targetA GameObject to be the target of the animation which holds the AudioSource to be utilized.
audioclipA AudioClip for a reference to the AudioClip to be played.
delayA System.Single for the time in seconds the action will wait before beginning.
static void iTween.Stab ( GameObject  target,
Hashtable  args 
)
inlinestatic

Plays an AudioClip once based on supplied volume and pitch and following any delay with FULL customization options. AudioSource is optional as iTween will provide one.

Parameters
audioclipA AudioClip for a reference to the AudioClip to be played.
audiosourceA AudioSource for which AudioSource to use
volumeA System.Single or System.Double for the target level of volume.
pitchA System.Single or System.Double for the target pitch.
delayA System.Single or System.Double for the time in seconds the action will wait before beginning.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static void iTween.Stop ( )
inlinestatic

Stop and destroy all Tweens in current scene.

static void iTween.Stop ( string  type)
inlinestatic

Stop and destroy all iTweens in current scene of a particular type.

Parameters
typeA System.String name of the type of iTween you would like to stop. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
static void iTween.Stop ( GameObject  target)
inlinestatic

Stop and destroy all iTweens on a GameObject.

static void iTween.Stop ( GameObject  target,
bool  includechildren 
)
inlinestatic

Stop and destroy all iTweens on a GameObject including its children.

static void iTween.Stop ( GameObject  target,
string  type 
)
inlinestatic

Stop and destroy all iTweens on a GameObject of a particular type. </summar

Parameters
typeA System.String name of the type of iTween you would like to stop. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.

static void iTween.Stop ( GameObject  target,
string  type,
bool  includechildren 
)
inlinestatic

Stop and destroy all iTweens on a GameObject of a particular type including its children. </summar

Parameters
typeA System.String name of the type of iTween you would like to stop. Can be written as part of a name such as "mov" for all "MoveTo" iTweens.

static void iTween.ValueTo ( GameObject  target,
Hashtable  args 
)
inlinestatic

Returns a value to an 'oncallback' method interpolated between the supplied 'from' and 'to' values for application as desired. Requires an 'onupdate' callback that accepts the same type as the supplied 'from' and 'to' properties.

Parameters
fromA System.Single or System.Double or Vector3 or Vector2 or Color or Rect for the starting value.
toA System.Single or System.Double or Vector3 or Vector2 or Color or Rect for the ending value.
timeA System.Single or System.Double for the time in seconds the animation will take to complete.
speedA System.Single or System.Double can be used instead of time to allow animation based on speed (only works with Vector2, Vector3, and Floats)
delayA System.Single or System.Double for the time in seconds the animation will wait before beginning.
easetypeA EaseType or System.String for the shape of the easing curve applied to the animation.
looptypeA LoopType or System.String for the type of loop to apply once the animation has completed.
onstartA System.String for the name of a function to launch at the beginning of the animation.
onstarttargetA GameObject for a reference to the GameObject that holds the "onstart" method.
onstartparamsA System.Object for arguments to be sent to the "onstart" method.
onupdateA System.String for the name of a function to launch on every step of the animation.
onupdatetargetA GameObject for a reference to the GameObject that holds the "onupdate" method.
onupdateparamsA System.Object for arguments to be sent to the "onupdate" method.
oncompleteA System.String for the name of a function to launch at the end of the animation.
oncompletetargetA GameObject for a reference to the GameObject that holds the "oncomplete" method.
oncompleteparamsA System.Object for arguments to be sent to the "oncomplete" method.
static Vector2 iTween.Vector2Update ( Vector2  currentValue,
Vector2  targetValue,
float  speed 
)
inlinestatic

Returns a Vector2 that is eased between a current and target value by the supplied speed.

Returns
A Vector2
Parameters
currentValueA Vector2 the starting or initial value
targetValueA Vector2 the target value that the current value will be eased to.
speedA System.Single to be used as rate of speed (larger number equals faster animation)
static Vector3 iTween.Vector3Update ( Vector3  currentValue,
Vector3  targetValue,
float  speed 
)
inlinestatic

Returns a Vector3 that is eased between a current and target value by the supplied speed.

Returns
A Vector3
Parameters
currentValueA Vector3 the starting or initial value
targetValueA Vector3 the target value that the current value will be eased to.
speedA System.Single to be used as rate of speed (larger number equals faster animation)

Member Data Documentation

iTween.EaseType iTween.easeType
string iTween.id
bool iTween.isRunning
LoopType iTween.loopType
float iTween.time
ArrayList iTween.tweens = new ArrayList()
static

The documentation for this class was generated from the following file: