1
DOTween & DOTween Pro / IndexOutOfRange
« on: September 02, 2015, 12:16:06 PM »
Hi everyone
I keep getting these issues with DOTween, where at the start of a new scene these errors will randomly pop up:
First one is:
And second one:
In both cases, I'm starting a standard tween in a Start() function. Now I'm under the impression that if I put something like
I'm using the latest DOTween version, v1.0.810
I keep getting these issues with DOTween, where at the start of a new scene these errors will randomly pop up:
First one is:
Quote
IndexOutOfRangeException: Array index is out of range.
(wrapper stelemref) object:stelemref (object,intptr,object)
DG.Tweening.Core.TweenManager.AddActiveTween (DG.Tweening.Tween t) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:758)
DG.Tweening.Core.TweenManager.GetTweener[Color,Color,ColorOptions] () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:97)
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) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/DOTween.cs:918)
DG.Tweening.DOTween.ToAlpha (DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, Single endValue, Single duration) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/DOTween.cs:417)
DG.Tweening.ShortcutExtensions46.DOFade (UnityEngine.UI.Text target, Single endValue, Single duration) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween46/ShortcutExtensions46.cs:319)
CircleMenu.Start () (at Assets/Scripts/CircleMenu.cs:23)
And second one:
Quote
IndexOutOfRangeException: Array index is out of range.
(wrapper stelemref) object:stelemref (object,intptr,object)
DG.Tweening.Core.TweenManager.AddActiveTween (DG.Tweening.Tween t) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:758)
DG.Tweening.Core.TweenManager.GetTweener[Vector3,Vector3[],Vector3ArrayOptions] () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:97)
DG.Tweening.DOTween.ApplyTo[Vector3,Vector3[],Vector3ArrayOptions] (DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, UnityEngine.Vector3[] endValue, Single duration, DG.Tweening.Plugins.Core.ABSTweenPlugin`3 plugin) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/DOTween.cs:918)
DG.Tweening.DOTween.ToArray (DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, UnityEngine.Vector3[] endValues, System.Single[] durations) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/DOTween.cs:596)
DG.Tweening.DOTween.Shake (DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, Single duration, Vector3 strength, Int32 vibrato, Single randomness, Boolean ignoreZAxis, Boolean vectorBased) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/DOTween.cs:565)
DG.Tweening.DOTween.Shake (DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, Single duration, Vector3 strength, Int32 vibrato, Single randomness) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/DOTween.cs:518)
DG.Tweening.ShortcutExtensions.DOShakePosition (UnityEngine.Camera target, Single duration, Vector3 strength, Int32 vibrato, Single randomness) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/ShortcutExtensions.cs:142)
PlaneTitre.Start () (at Assets/Scripts/PlaneTitre.cs:31)
In both cases, I'm starting a standard tween in a Start() function. Now I'm under the impression that if I put something like
Code: [Select]
DOTween.SetTweensCapacity(999999, 100);
at the start of a scene, it reduces the probability of the error happening (but sadly doesn't totaly solve the issue). It's super random, and I can sometimes load the scene 20 times in a row without any issue, and sometimes it's the first time I launch the game :<I'm using the latest DOTween version, v1.0.810