[ad_1]
I’m utilizing a Trigger Custom Events node in Unity Visual Scripting. It normally works however round 5% of the time… I get an error that claims:
<< ArgumentOutOfRangeException: Index was out of vary. Must be non-negative and fewer than the scale of the gathering.
Parameter identify: index >>
The Trigger is acquired in one other SportObject, as proven right here:
In each instances, the Arguments is about to 0. Here is the complete textual content of the error from the Console:
ArgumentOutOfRangeException: Index was out of vary. Must be non-negative and fewer than the scale of the gathering.
Parameter identify: index
System.Collections.ArrayList.get_Item (System.Int32 index) (at <6073cf49ed704e958b8a66d540dea948>:0)
Unity.VisualScripting.GetChecklistItem.Get (Unity.VisualScripting.Flow movement) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Collections/Lists/GetChecklistItem.cs:50)
Unity.VisualScripting.Unit+<>c__DisplayClass86_0`1[T].<ValueOutput>b__0 (Unity.VisualScripting.Flow recursion) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Unit.cs:353)
Unity.VisualScripting.Flow.GetValueDelegate (Unity.VisualScripting.ValueOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:650)
Unity.VisualScripting.Flow.GetWorth (Unity.VisualScripting.ValueOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:591)
Unity.VisualScripting.Flow.GetWorth (Unity.VisualScripting.WorthInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:535)
Unity.VisualScripting.SetVariable.Assign (Unity.VisualScripting.Flow movement) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Variables/SetVariable.cs:64)
Unity.VisualScripting.Flow.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:456)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:347)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.For.Loop (Unity.VisualScripting.Flow movement) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Control/For.cs:94)
Unity.VisualScripting.Flow.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:456)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:347)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Run (Unity.VisualScripting.ControlOutput port) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:240)
Unity.VisualScripting.EventUnit`1[TArgs].Run (Unity.VisualScripting.Flow movement) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/EventUnit.cs:182)
Unity.VisualScripting.EventUnit`1[TArgs].Trigger (Unity.VisualScripting.GraphReference reference, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/EventUnit.cs:154)
Unity.VisualScripting.EventUnit`1+<>c__DisplayClass14_0[TArgs].<StartListening>b__0 (TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/EventUnit.cs:67)
Unity.VisualScripting.EventBus.Trigger[TArgs] (Unity.VisualScripting.EventHook hook, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Events/EventBus.cs:71)
Unity.VisualScripting.EventBus.Trigger[TArgs] (System.String identify, UnityEngine.SportObject goal, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Events/EventBus.cs:80)
Unity.VisualScripting.CustomEvent.Trigger (UnityEngine.SportObject goal, System.String identify, System.Object[] args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/CustomEvent.cs:67)
Unity.VisualScripting.TriggerCustomEvent.Trigger (Unity.VisualScripting.Flow movement) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/TriggerCustomEvent.cs:90)
Unity.VisualScripting.Flow.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:456)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:347)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Run (Unity.VisualScripting.ControlOutput port) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:240)
Unity.VisualScripting.EventUnit`1[TArgs].Run (Unity.VisualScripting.Flow movement) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/EventUnit.cs:182)
Unity.VisualScripting.EventUnit`1[TArgs].Trigger (Unity.VisualScripting.GraphReference reference, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/EventUnit.cs:154)
Unity.VisualScripting.EventUnit`1+<>c__DisplayClass14_0[TArgs].<StartListening>b__0 (TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/EventUnit.cs:67)
Unity.VisualScripting.EventBus.Trigger[TArgs] (Unity.VisualScripting.EventHook hook, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Events/EventBus.cs:71)
Unity.VisualScripting.EventBus.Trigger[TArgs] (System.String identify, UnityEngine.SportObject goal, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Events/EventBus.cs:80)
Unity.VisualScripting.CustomEvent.Trigger (UnityEngine.SportObject goal, System.String identify, System.Object[] args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/CustomEvent.cs:67)
Unity.VisualScripting.TriggerCustomEvent.Trigger (Unity.VisualScripting.Flow movement) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/TriggerCustomEvent.cs:90)
Unity.VisualScripting.Flow.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:456)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:347)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:351)
Unity.VisualScripting.Flow.Run (Unity.VisualScripting.ControlOutput port) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:240)
Unity.VisualScripting.EventUnit`1[TArgs].Run (Unity.VisualScripting.Flow movement) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/EventUnit.cs:182)
Unity.VisualScripting.EventUnit`1[TArgs].Trigger (Unity.VisualScripting.GraphReference reference, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/EventUnit.cs:154)
Unity.VisualScripting.EventUnit`1+<>c__DisplayClass14_0[TArgs].<StartListening>b__0 (TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/EventUnit.cs:67)
Unity.VisualScripting.EventBus.Trigger[TArgs] (Unity.VisualScripting.EventHook hook, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Events/EventBus.cs:71)
Unity.VisualScripting.EventBus.Trigger[TArgs] (System.String identify, UnityEngine.SportObject goal, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Events/EventBus.cs:80)
Unity.VisualScripting.CustomEvent.Trigger (UnityEngine.SportObject goal, System.String identify, System.Object[] args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/CustomEvent.cs:67)
Unity.VisualScripting.TriggerCustomEvent.Trigger (Unity.VisualScripting.Flow movement) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Framework/Events/TriggerCustomEvent.cs:90)
Unity.VisualScripting.Flow.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:456)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:394)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:381)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:381)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:381)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Flow/Flow.cs:398)
Unity.VisualScripting.Flow+<InvokeCoroutine>d__<message truncated>
Two issues about this error are particularly complicated:
- The code normally works precisely as supposed. It solely throws an error about 5-10% of the time…
- The error states that the Parameter identify is Index… which parameter is that, is that the Argument?
Any perception into what might trigger this, or concepts on the way to repair it? Thank you!
[ad_2]