LTDescr.setCanvasMoveX C# (CSharp) Method

setCanvasMoveX() public method

public setCanvasMoveX ( ) : LTDescr
return LTDescr
    public LTDescr setCanvasMoveX()
    {
        this.type = TweenAction.CANVAS_MOVE_X;
        this.initInternal = ()=>{ this.fromInternal.x = this.rectTransform.anchoredPosition3D.x; };
        this.easeInternal = ()=>{ Vector3 c = this.rectTransform.anchoredPosition3D; this.rectTransform.anchoredPosition3D = new Vector3(easeMethod().x, c.y, c.z); };
        return this;
    }
LTDescr