LTDescr.setOnUpdateVector2 C# (CSharp) Method

setOnUpdateVector2() public method

public setOnUpdateVector2 ( Action onUpdate ) : LTDescr
onUpdate Action
return LTDescr
    public LTDescr setOnUpdateVector2( Action<Vector2> onUpdate )
    {
        this._optional.onUpdateVector2 = onUpdate;
        this.hasUpdateCallback = true;
        return this;
    }

Usage Example

        public void StartAction()
        {
            rectTransform.anchoredPosition = initialAnchoredPosition;
            LTDescr ltDescr = LeanTween.value(gameObject, initialAnchoredPosition, Vector2.zero, time);

            ltDescr.tweenType = LeanTweenType.easeInOutSine;
            ltDescr.setDelay(delay);
            ltDescr.setOnUpdateVector2(OnUpdateAnchoredPosition);
        }
All Usage Examples Of LTDescr::setOnUpdateVector2
LTDescr