LTDescr.setCanvasMoveZ C# (CSharp) Method

setCanvasMoveZ() public method

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