LTDescr.setFrom C# (CSharp) Method

setFrom() public method

public setFrom ( Vector3 from ) : LTDescr
from Vector3
return LTDescr
    public LTDescr setFrom( Vector3 from )
    {
        if(this.trans){
            this.init();
        }
        this.from = from;
        // this.hasInitiliazed = true; // this is set, so that the "from" value isn't overwritten later on when the tween starts
        this.diff = this.to - this.from;
        return this;
    }

Same methods

LTDescr::setFrom ( float from ) : LTDescr

Usage Example

        void Start()
        {
            LTDescr ltDescr = LeanTween.moveLocalX(cloudRoot.gameObject, -1136, 200f);

            ltDescr.setFrom(1136);
            ltDescr.tweenType = LeanTweenType.linear;
            ltDescr.setRepeat(-1);
        }
All Usage Examples Of LTDescr::setFrom
LTDescr