An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 KiB

iTween commands

[TOC]

Look From

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

Defined in Fungus.Commands.LookFrom

Property Type Description
_from Transform Fungus.Variables.TransformData Target transform that the GameObject will look at
_from Position Fungus.Variables.Vector3Data Target world position that the GameObject will look at, if no From Transform is set
Axis Fungus.Commands.iTweenAxis Restricts rotation to the supplied axis only
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Look To

Rotates a GameObject to look at a supplied Transform or Vector3 over time.

Defined in Fungus.Commands.LookTo

Property Type Description
_to Transform Fungus.Variables.TransformData Target transform that the GameObject will look at
_to Position Fungus.Variables.Vector3Data Target world position that the GameObject will look at, if no From Transform is set
Axis Fungus.Commands.iTweenAxis Restricts rotation to the supplied axis only
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Move Add

Moves a game object by a specified offset over time.

Defined in Fungus.Commands.MoveAdd

Property Type Description
_offset Fungus.Variables.Vector3Data A translation offset in space the GameObject will animate to
Space UnityEngine.Space Apply the transformation in either the world coordinate or local cordinate system
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Move From

Moves a game object from a specified position back to its starting position over time. The position can be defined by a transform in another object (using To Transform) or by setting an absolute position (using To Position, if To Transform is set to None).

Defined in Fungus.Commands.MoveFrom

Property Type Description
_from Transform Fungus.Variables.TransformData Target transform that the GameObject will move from
_from Position Fungus.Variables.Vector3Data Target world position that the GameObject will move from, if no From Transform is set
Is Local System.Boolean Whether to animate in world space or relative to the parent. False by default.
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Move To

Moves a game object to a specified position over time. The position can be defined by a transform in another object (using To Transform) or by setting an absolute position (using To Position, if To Transform is set to None).

Defined in Fungus.Commands.MoveTo

Property Type Description
_to Transform Fungus.Variables.TransformData Target transform that the GameObject will move to
_to Position Fungus.Variables.Vector3Data Target world position that the GameObject will move to, if no From Transform is set
Is Local System.Boolean Whether to animate in world space or relative to the parent. False by default.
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Punch Position

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

Defined in Fungus.Commands.PunchPosition

Property Type Description
_amount Fungus.Variables.Vector3Data A translation offset in space the GameObject will animate to
Space UnityEngine.Space Apply the transformation in either the world coordinate or local cordinate system
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Punch Rotation

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

Defined in Fungus.Commands.PunchRotation

Property Type Description
_amount Fungus.Variables.Vector3Data A rotation offset in space the GameObject will animate to
Space UnityEngine.Space Apply the transformation in either the world coordinate or local cordinate system
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Punch Scale

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

Defined in Fungus.Commands.PunchScale

Property Type Description
_amount Fungus.Variables.Vector3Data A scale offset in space the GameObject will animate to
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Rotate Add

Rotates a game object by the specified angles over time.

Defined in Fungus.Commands.RotateAdd

Property Type Description
_offset Fungus.Variables.Vector3Data A rotation offset in space the GameObject will animate to
Space UnityEngine.Space Apply the transformation in either the world coordinate or local cordinate system
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Rotate From

Rotates a game object from the specified angles back to its starting orientation over time.

Defined in Fungus.Commands.RotateFrom

Property Type Description
_from Transform Fungus.Variables.TransformData Target transform that the GameObject will rotate from
_from Rotation Fungus.Variables.Vector3Data Target rotation that the GameObject will rotate from, if no From Transform is set
Is Local System.Boolean Whether to animate in world space or relative to the parent. False by default.
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Rotate To

Rotates a game object to the specified angles over time.

Defined in Fungus.Commands.RotateTo

Property Type Description
_to Transform Fungus.Variables.TransformData Target transform that the GameObject will rotate to
_to Rotation Fungus.Variables.Vector3Data Target rotation that the GameObject will rotate to, if no To Transform is set
Is Local System.Boolean Whether to animate in world space or relative to the parent. False by default.
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Scale Add

Changes a game object's scale by a specified offset over time.

Defined in Fungus.Commands.ScaleAdd

Property Type Description
_offset Fungus.Variables.Vector3Data A scale offset in space the GameObject will animate to
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Scale From

Changes a game object's scale to the specified value and back to its original scale over time.

Defined in Fungus.Commands.ScaleFrom

Property Type Description
_from Transform Fungus.Variables.TransformData Target transform that the GameObject will scale from
_from Scale Fungus.Variables.Vector3Data Target scale that the GameObject will scale from, if no From Transform is set
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Scale To

Changes a game object's scale to a specified value over time.

Defined in Fungus.Commands.ScaleTo

Property Type Description
_to Transform Fungus.Variables.TransformData Target transform that the GameObject will scale to
_to Scale Fungus.Variables.Vector3Data Target scale that the GameObject will scale to, if no To Transform is set
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Shake Position

Randomly shakes a GameObject's position by a diminishing amount over time.

Defined in Fungus.Commands.ShakePosition

Property Type Description
_amount Fungus.Variables.Vector3Data A translation offset in space the GameObject will animate to
Is Local System.Boolean Whether to animate in world space or relative to the parent. False by default.
Axis Fungus.Commands.iTweenAxis Restricts rotation to the supplied axis only
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Shake Rotation

Randomly shakes a GameObject's rotation by a diminishing amount over time.

Defined in Fungus.Commands.ShakeRotation

Property Type Description
_amount Fungus.Variables.Vector3Data A rotation offset in space the GameObject will animate to
Space UnityEngine.Space Apply the transformation in either the world coordinate or local cordinate system
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Shake Scale

Randomly shakes a GameObject's rotation by a diminishing amount over time.

Defined in Fungus.Commands.ShakeScale

Property Type Description
_amount Fungus.Variables.Vector3Data A scale offset in space the GameObject will animate to
_target Object Fungus.Variables.GameObjectData Target game object to apply the Tween to
_tween Name Fungus.Variables.StringData An individual name useful for stopping iTweens by name
_duration Fungus.Variables.FloatData The time in seconds the animation will take to complete
Ease Type Fungus.iTween+EaseType The shape of the easing curve applied to the animation
Loop Type Fungus.iTween+LoopType The type of loop to apply once the animation has completed
Stop Previous Tweens System.Boolean Stop any previously added iTweens on this object before adding this iTween
Wait Until Finished System.Boolean Wait until the tween has finished before executing the next command

Stop Tween

Stops an active iTween by name.

Defined in Fungus.Commands.StopTween

Property Type Description
_tween Name Fungus.Variables.StringData Stop and destroy any Tweens in current scene with the supplied name

Stop Tweens

Stop all active iTweens in the current scene.

Defined in Fungus.Commands.StopTweens