LTDescr.setOnStart C# (CSharp) Method

setOnStart() public method

public setOnStart ( Action onStart ) : LTDescr
onStart Action
return LTDescr
    public LTDescr setOnStart( Action onStart )
    {
        this._optional.onStart = onStart;
        return this;
    }

Usage Example

Beispiel #1
0
 // To make cumulative move actions work, the To value needs to adjusted
 // when the animation starts. Leantween already uses same approach to fetch the From value.
 private void SetupMoveTo(LTDescr descr, Vector2 amount)
 {
     descr.setOnStart(() =>
     {
         descr.to = descr.rectTransform.anchoredPosition3D + new Vector3(amount.x, amount.y, 0f);
     });
 }
All Usage Examples Of LTDescr::setOnStart
LTDescr