C# Class Prime31.GoKitLite.GoKitLite

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: prime31/GoKitLite Class Usage Examples

Méthodes publiques

Свойство Type Description
defaultEaseType EaseType

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat Tween

colorTo() public méthode

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
Résultat Tween

customAction() public méthode

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

getActiveTween() public méthode

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

isTweenActive() public méthode

Checks if the current tween is active
public isTweenActive ( int id ) : bool
id int
Résultat bool

localPositionFrom() public méthode

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

localPositionTo() public méthode

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

localRotationFrom() public méthode

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

localRotationTo() public méthode

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

positionFrom() public méthode

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

positionTo() public méthode

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

propertyTween() public méthode

public propertyTween ( ITweenable propertyTween, float duration ) : Tween
propertyTween ITweenable
duration float
Résultat Tween

rectTransformPositionTo() public méthode

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

rotationFrom() public méthode

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

rotationTo() public méthode

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

scaleFrom() public méthode

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

scaleTo() public méthode

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

setAllTweenPauseState() public méthode

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

setTweenPauseState() public méthode

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

stopAllTweens() public méthode

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
Résultat void

stopTween() public méthode

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
Résultat bool

stopTweenForTransform() public méthode

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
Résultat bool

Property Details

defaultEaseType public_oe static_oe property

public static EaseType defaultEaseType
Résultat EaseType