C# Class Prime31.GoKitLite.GoKitLite

Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: prime31/GoKitLite Class Usage Examples

Public Properties

Property Type Description
defaultEaseType EaseType

Public Methods

Method Description
colorFrom ( Transform trans, float duration, Color targetColor, string materialProperty = "_Color", bool isRelativeTween = false ) : Tween
colorTo ( Transform trans, float duration, Color targetColor, string materialProperty = "_Color", bool isRelativeTween = false ) : Tween
customAction ( Transform trans, float duration, float>.Action action ) : Tween
getActiveTween ( int id ) : Tween

find an active tween with given id, do not store a reference to the tween!

isTweenActive ( int id ) : bool

Checks if the current tween is active

localPositionFrom ( Transform trans, float duration, Vector3 targetPosition, bool isRelativeTween = false ) : Tween
localPositionTo ( Transform trans, float duration, Vector3 targetPosition, bool isRelativeTween = false ) : Tween
localRotationFrom ( Transform trans, float duration, Vector3 targetEulers, bool isRelativeTween = false ) : Tween
localRotationTo ( Transform trans, float duration, Vector3 targetEulers, bool isRelativeTween = false ) : Tween
positionFrom ( Transform trans, float duration, Vector3 targetPosition, bool isRelativeTween = false ) : Tween
positionTo ( Transform trans, float duration, Vector3 targetPosition, bool isRelativeTween = false ) : Tween
propertyTween ( ITweenable propertyTween, float duration ) : Tween
rectTransformPositionTo ( RectTransform trans, float duration, Vector3 targetScale, bool isRelativeTween = false ) : Tween
rotationFrom ( Transform trans, float duration, Vector3 targetEulers, bool isRelativeTween = false ) : Tween
rotationTo ( Transform trans, float duration, Vector3 targetEulers, bool isRelativeTween = false ) : Tween
scaleFrom ( Transform trans, float duration, Vector3 targetScale, bool isRelativeTween = false ) : Tween
scaleTo ( Transform trans, float duration, Vector3 targetScale, bool isRelativeTween = false ) : Tween
setAllTweenPauseState ( bool isPaused ) : void

set all in-progress tween's pause state.

setTweenPauseState ( int id, bool isPaused ) : bool

set the tween's pause state. returns true if the tween was found.

stopAllTweens ( bool bringToCompletion ) : void

Stops all in-progress tweens optionally bringing them to their final values.

stopTween ( int id, bool bringToCompletion ) : bool

stops the tween optionally bringing it to its final value first. returns true if the tween was found and stopped.

stopTweenForTransform ( Transform trans, bool bringToCompletion ) : bool

stops all the tweens for a specified transform optionally bringing it to its final value first. returns true if a tween was found and stopped.

Private Methods

Method Description
OnApplicationQuit ( ) : void
Update ( ) : void
colorTweenTo ( Transform trans, float duration, Color targetColor, string materialProperty = "_Color", bool isRelativeTween = false ) : Tween
nextAvailableTween ( Transform trans, float duration, TweenType tweenType ) : Tween
removeTween ( Tween tween, int index ) : void
reverseTween ( int id ) : bool

reverses the tween. if it was going forward it will be going backwards and vice versa.

vectorTweenTo ( Transform trans, TweenType tweenType, float duration, Vector3 targetVector, bool isRelativeTween = false ) : Tween

Method Details

colorFrom() public method

public colorFrom ( Transform trans, float duration, Color targetColor, string materialProperty = "_Color", bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetColor Color
materialProperty string
isRelativeTween bool
return Tween

colorTo() public method

public colorTo ( Transform trans, float duration, Color targetColor, string materialProperty = "_Color", bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetColor Color
materialProperty string
isRelativeTween bool
return Tween

customAction() public method

public customAction ( Transform trans, float duration, float>.Action action ) : Tween
trans UnityEngine.Transform
duration float
action float>.Action
return Tween

getActiveTween() public method

find an active tween with given id, do not store a reference to the tween!
public getActiveTween ( int id ) : Tween
id int
return Tween

isTweenActive() public method

Checks if the current tween is active
public isTweenActive ( int id ) : bool
id int
return bool

localPositionFrom() public method

public localPositionFrom ( Transform trans, float duration, Vector3 targetPosition, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetPosition Vector3
isRelativeTween bool
return Tween

localPositionTo() public method

public localPositionTo ( Transform trans, float duration, Vector3 targetPosition, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetPosition Vector3
isRelativeTween bool
return Tween

localRotationFrom() public method

public localRotationFrom ( Transform trans, float duration, Vector3 targetEulers, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetEulers Vector3
isRelativeTween bool
return Tween

localRotationTo() public method

public localRotationTo ( Transform trans, float duration, Vector3 targetEulers, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetEulers Vector3
isRelativeTween bool
return Tween

positionFrom() public method

public positionFrom ( Transform trans, float duration, Vector3 targetPosition, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetPosition Vector3
isRelativeTween bool
return Tween

positionTo() public method

public positionTo ( Transform trans, float duration, Vector3 targetPosition, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetPosition Vector3
isRelativeTween bool
return Tween

propertyTween() public method

public propertyTween ( ITweenable propertyTween, float duration ) : Tween
propertyTween ITweenable
duration float
return Tween

rectTransformPositionTo() public method

public rectTransformPositionTo ( RectTransform trans, float duration, Vector3 targetScale, bool isRelativeTween = false ) : Tween
trans UnityEngine.RectTransform
duration float
targetScale Vector3
isRelativeTween bool
return Tween

rotationFrom() public method

public rotationFrom ( Transform trans, float duration, Vector3 targetEulers, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetEulers Vector3
isRelativeTween bool
return Tween

rotationTo() public method

public rotationTo ( Transform trans, float duration, Vector3 targetEulers, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetEulers Vector3
isRelativeTween bool
return Tween

scaleFrom() public method

public scaleFrom ( Transform trans, float duration, Vector3 targetScale, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetScale Vector3
isRelativeTween bool
return Tween

scaleTo() public method

public scaleTo ( Transform trans, float duration, Vector3 targetScale, bool isRelativeTween = false ) : Tween
trans UnityEngine.Transform
duration float
targetScale Vector3
isRelativeTween bool
return Tween

setAllTweenPauseState() public method

set all in-progress tween's pause state.
public setAllTweenPauseState ( bool isPaused ) : void
isPaused bool
return void

setTweenPauseState() public method

set the tween's pause state. returns true if the tween was found.
public setTweenPauseState ( int id, bool isPaused ) : bool
id int
isPaused bool
return bool

stopAllTweens() public method

Stops all in-progress tweens optionally bringing them to their final values.
public stopAllTweens ( bool bringToCompletion ) : void
bringToCompletion bool If true, then all active tweens are broght to completion before they are stopped
return void

stopTween() public method

stops the tween optionally bringing it to its final value first. returns true if the tween was found and stopped.
public stopTween ( int id, bool bringToCompletion ) : bool
id int
bringToCompletion bool
return bool

stopTweenForTransform() public method

stops all the tweens for a specified transform optionally bringing it to its final value first. returns true if a tween was found and stopped.
public stopTweenForTransform ( Transform trans, bool bringToCompletion ) : bool
trans UnityEngine.Transform
bringToCompletion bool
return bool

Property Details

defaultEaseType public_oe static_oe property

public static EaseType defaultEaseType
return EaseType