Code Monkey home page Code Monkey logo

Comments (4)

Demigiant avatar Demigiant commented on August 20, 2024

Fixed in v1.0.336

I finally managed to reproduce this issue, after a lot of tries. Then it took me 5 minutes to fix it, whew :)

from dotween.

sandygk avatar sandygk commented on August 20, 2024

I am having a similar issue. I am using DOTween all over my project and I am getting this error with the last version (V 1.0.720) this is the error I am getting

IndexOutOfRangeException: Array index is out of range.
DG.Tweening.Core.TweenManager.RemoveActiveTween (DG.Tweening.Tween t) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:790)
DG.Tweening.Core.TweenManager.Update (UpdateType updateType, Single deltaTime, Single independentTime) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:401)
DG.Tweening.Core.DOTweenComponent.Update () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/DOTweenComponent.cs:50)

the error pointe me to this line of code:

private void Disappear()
{
_spriteRenderer.DOFade(0, _fadeTime).OnComplete(Deactivate); // <-----
}

I am also getting this error which points me to the DOTween object in the scene

IndexOutOfRangeException: Array index is out of range.
(wrapper stelemref) object:stelemref (object,intptr,object)
DG.Tweening.Core.TweenManager.ReorganizeActiveTweens () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:768)
DG.Tweening.Core.TweenManager.Update (UpdateType updateType, Single deltaTime, Single independentTime) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:325)
DG.Tweening.Core.DOTweenComponent.Update () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/DOTweenComponent.cs:50)

from dotween.

Demigiant avatar Demigiant commented on August 20, 2024

This really shouldn't be happening anymore, damn. Can you paste me the Deactivate method body? There is probably something there.

P.S. note that you can fix this error by using SetTweensCapacity to set the capacity already high enough that it won't need to be changed automatically. But if you can help me identity this issue it would be great.

from dotween.

jmp909 avatar jmp909 commented on August 20, 2024

I'm still getting this.

happened when I reloaded my scene

private void ShowLogos()
{
    logos.SetActive(true);
    logosSpriteRenderer.DOFade(1, 1);
}
IndexOutOfRangeException: Array index is out of range.

at DG.Tweening.Core.TweenManager.GetTweener[Color,Color,ColorOptions] () [0x00037]  in D:\DG\_Develop\__UNITY3_CLASSES\_Holoville\__DOTween\_DOTween.Assembly\DOTween\Core\TweenManager.cs:65 

at DG.Tweening.DOTween.ApplyTo[Color,Color,ColorOptions] (DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, Color endValue, Single duration, DG.Tweening.Plugins.Core.ABSTweenPlugin`3 plugin) [0x00005] 
in D:\DG\_Develop\__UNITY3_CLASSES\_Holoville\__DOTween\_DOTween.Assembly\DOTween\DOTween.cs:995 

at DG.Tweening.DOTween.ToAlpha (DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, Single endValue, Single duration) [0x00000] in D:\DG\_Develop\__UNITY3_CLASSES\_Holoville\__DOTween\_DOTween.Assembly\DOTween\DOTween.cs:445 
  at DG.Tweening.ShortcutExtensions43.DOFade (UnityEngine.SpriteRenderer target, Single endValue, Single duration) [0x0000d] in D:\DG\_Develop\__UNITY3_CLASSES\_Holoville\__DOTween\_DOTween.Assembly\DOTween43\ShortcutExtensions43.cs:84 
  at MainController.ShowLogos (Boolean immediate) [0x0002f] in C:\dev\test\Assets\_Project\Scripts\Singletons\MainController.cs:375 

from dotween.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.