LTDescr.setUseFrames C# (CSharp) Method

setUseFrames() public method

public setUseFrames ( bool useFrames ) : LTDescr
useFrames bool
return LTDescr
    public LTDescr setUseFrames( bool useFrames )
    {
        this.useFrames = useFrames;
        this.usesNormalDt = false;
        return this;
    }

Usage Example

        // Code that runs on entering the state.
        public override void OnEnter()
        {
            var len = pathPoints.Length;

            Vector3[] tweenVector = new Vector3[len];

            for (var i = 0; i < len; i++)
            {
                tweenVector [i] = pathPoints [i].Value;
            }

            GameObject go = Fsm.GetOwnerDefaultTarget(gameObject);

            Fsm.Event(onStartEvent);

            LTDescr tween = LeanTween.move(go, tweenVector, time.Value);

            LeanTweenID.Value = tween.id;

            tween.setOrientToPath(orientToPath.Value);
            tween.setAxis(axis.Value);
            tween.setEase(easeType);
            tween.setDelay(delay.Value);

            if (noOfRepeat.Value > 0)
            {
                tween.setRepeat(noOfRepeat.Value);
            }

            switch (LoopType)
            {
            case LTLoop.clamp:
                tween.setLoopClamp();
                break;

            case LTLoop.once:
                tween.setLoopOnce();
                break;

            case LTLoop.pingpong:
                tween.setLoopPingPong();
                break;
            }

            tween.setOnComplete(doOnComplete);
            tween.setOnUpdate(doOnUpdate);
            tween.setUseEstimatedTime(useEstimatedTime.Value);
            tween.setUseFrames(useFrames.Value);
        }
All Usage Examples Of LTDescr::setUseFrames
LTDescr