C# Class LeopotamGroup.Tweening.TweeningPosition

Tweening position.
Inheritance: TweeningBase
Show file Open project: Leopotam/LeopotamGroupLibraryUnity

Public Properties

Property Type Description
EndValue UnityEngine.Vector3
StartValue UnityEngine.Vector3
Target UnityEngine.Transform

Public Methods

Method Description
Begin ( GameObject go, Vector3 start, Vector3 end, float time ) : TweeningPosition

Begin tweening at specified GameObject.

Begin ( Vector3 start, Vector3 end, float time ) : TweeningPosition

Begin tweening.

Protected Methods

Method Description
OnInit ( ) : void
OnUpdateValue ( ) : void

Method Details

Begin() public static method

Begin tweening at specified GameObject.
public static Begin ( GameObject go, Vector3 start, Vector3 end, float time ) : TweeningPosition
go UnityEngine.GameObject Holder of tweener.
start UnityEngine.Vector3 Start position.
end UnityEngine.Vector3 End position.
time float Time for tweening.
return TweeningPosition

Begin() public method

Begin tweening.
public Begin ( Vector3 start, Vector3 end, float time ) : TweeningPosition
start UnityEngine.Vector3 Start position.
end UnityEngine.Vector3 End position.
time float Time for tweening.
return TweeningPosition

OnInit() protected method

protected OnInit ( ) : void
return void

OnUpdateValue() protected method

protected OnUpdateValue ( ) : void
return void

Property Details

EndValue public property

End value of position.
public Vector3,UnityEngine EndValue
return UnityEngine.Vector3

StartValue public property

Start value of position.
public Vector3,UnityEngine StartValue
return UnityEngine.Vector3

Target public property

Target transform. If null on start - current transform will be used.
public Transform,UnityEngine Target
return UnityEngine.Transform