LTDescr.setUseEstimatedTime C# (CSharp) Method

setUseEstimatedTime() public method

public setUseEstimatedTime ( bool useEstimatedTime ) : LTDescr
useEstimatedTime bool
return LTDescr
    public LTDescr setUseEstimatedTime( bool useEstimatedTime )
    {
        this.useEstimatedTime = useEstimatedTime;
        this.usesNormalDt = false;
        return this;
    }

Usage Example

Beispiel #1
0
    void Start()
    {
        spline  = new LTSpline(new Vector3[] { trans[0].position, trans[1].position, trans[2].position, trans[3].position, trans[4].position });
        ltLogo  = GameObject.Find("LeanTweenLogo1");
        ltLogo2 = GameObject.Find("LeanTweenLogo2");

        LeanTween.moveSpline(ltLogo2, spline.pts, 1f).setEase(LeanTweenType.easeInOutQuad).setLoopPingPong().setOrientToPath(true);

        LTDescr zoomInPath_LT = LeanTween.moveSpline(ltLogo2, new Vector3[] { Vector3.zero, Vector3.zero, new Vector3(1, 1, 1), new Vector3(2, 1, 1), new Vector3(2, 1, 1) }, 1.5f);

        zoomInPath_LT.setUseEstimatedTime(true);
    }
All Usage Examples Of LTDescr::setUseEstimatedTime
LTDescr