Tuesday, September 20, 2022
HomeGame DevelopmentSet off Customized Occasion node in Unity Visible Scripting inflicting ArgumentOutOfRangeException error

Set off Customized Occasion node in Unity Visible Scripting inflicting ArgumentOutOfRangeException error


I’m utilizing a Set off Customized Occasions node in Unity Visible Scripting. It often works however round 5% of the time… I get an error that claims:

<< ArgumentOutOfRangeException: Index was out of vary. Have to be non-negative and fewer than the dimensions of the gathering.
Parameter identify: index >>

enter image description here

The Set off is acquired in one other GameObject, as proven right here:

enter image description here

In each instances, the Arguments is ready to 0. Right here is the complete textual content of the error from the Console:

ArgumentOutOfRangeException: Index was out of vary. Have to be non-negative and fewer than the dimensions of the gathering.
Parameter identify: index
System.Collections.ArrayList.get_Item (System.Int32 index) (at <6073cf49ed704e958b8a66d540dea948>:0)
Unity.VisualScripting.GetListItem.Get (Unity.VisualScripting.Circulate circulation) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Collections/Lists/GetListItem.cs:50)
Unity.VisualScripting.Unit+<>c__DisplayClass86_0`1[T].<ValueOutput>b__0 (Unity.VisualScripting.Circulate recursion) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Unit.cs:353)
Unity.VisualScripting.Circulate.GetValueDelegate (Unity.VisualScripting.ValueOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:650)
Unity.VisualScripting.Circulate.GetValue (Unity.VisualScripting.ValueOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:591)
Unity.VisualScripting.Circulate.GetValue (Unity.VisualScripting.ValueInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:535)
Unity.VisualScripting.SetVariable.Assign (Unity.VisualScripting.Circulate circulation) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Variables/SetVariable.cs:64)
Unity.VisualScripting.Circulate.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:456)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:347)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.For.Loop (Unity.VisualScripting.Circulate circulation) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Management/For.cs:94)
Unity.VisualScripting.Circulate.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:456)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:347)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Run (Unity.VisualScripting.ControlOutput port) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:240)
Unity.VisualScripting.EventUnit`1[TArgs].Run (Unity.VisualScripting.Circulate circulation) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/EventUnit.cs:182)
Unity.VisualScripting.EventUnit`1[TArgs].Set off (Unity.VisualScripting.GraphReference reference, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/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.Circulate/Framework/Occasions/EventUnit.cs:67)
Unity.VisualScripting.EventBus.Set off[TArgs] (Unity.VisualScripting.EventHook hook, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Occasions/EventBus.cs:71)
Unity.VisualScripting.EventBus.Set off[TArgs] (System.String identify, UnityEngine.GameObject goal, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Occasions/EventBus.cs:80)
Unity.VisualScripting.CustomEvent.Set off (UnityEngine.GameObject goal, System.String identify, System.Object[] args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/CustomEvent.cs:67)
Unity.VisualScripting.TriggerCustomEvent.Set off (Unity.VisualScripting.Circulate circulation) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/TriggerCustomEvent.cs:90)
Unity.VisualScripting.Circulate.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:456)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:347)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Run (Unity.VisualScripting.ControlOutput port) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:240)
Unity.VisualScripting.EventUnit`1[TArgs].Run (Unity.VisualScripting.Circulate circulation) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/EventUnit.cs:182)
Unity.VisualScripting.EventUnit`1[TArgs].Set off (Unity.VisualScripting.GraphReference reference, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/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.Circulate/Framework/Occasions/EventUnit.cs:67)
Unity.VisualScripting.EventBus.Set off[TArgs] (Unity.VisualScripting.EventHook hook, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Occasions/EventBus.cs:71)
Unity.VisualScripting.EventBus.Set off[TArgs] (System.String identify, UnityEngine.GameObject goal, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Occasions/EventBus.cs:80)
Unity.VisualScripting.CustomEvent.Set off (UnityEngine.GameObject goal, System.String identify, System.Object[] args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/CustomEvent.cs:67)
Unity.VisualScripting.TriggerCustomEvent.Set off (Unity.VisualScripting.Circulate circulation) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/TriggerCustomEvent.cs:90)
Unity.VisualScripting.Circulate.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:456)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:347)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Invoke (Unity.VisualScripting.ControlOutput output) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:351)
Unity.VisualScripting.Circulate.Run (Unity.VisualScripting.ControlOutput port) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:240)
Unity.VisualScripting.EventUnit`1[TArgs].Run (Unity.VisualScripting.Circulate circulation) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/EventUnit.cs:182)
Unity.VisualScripting.EventUnit`1[TArgs].Set off (Unity.VisualScripting.GraphReference reference, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/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.Circulate/Framework/Occasions/EventUnit.cs:67)
Unity.VisualScripting.EventBus.Set off[TArgs] (Unity.VisualScripting.EventHook hook, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Occasions/EventBus.cs:71)
Unity.VisualScripting.EventBus.Set off[TArgs] (System.String identify, UnityEngine.GameObject goal, TArgs args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Core/Occasions/EventBus.cs:80)
Unity.VisualScripting.CustomEvent.Set off (UnityEngine.GameObject goal, System.String identify, System.Object[] args) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/CustomEvent.cs:67)
Unity.VisualScripting.TriggerCustomEvent.Set off (Unity.VisualScripting.Circulate circulation) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Framework/Occasions/TriggerCustomEvent.cs:90)
Unity.VisualScripting.Circulate.InvokeDelegate (Unity.VisualScripting.ControlInput enter) (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:456)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:394)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:381)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:381)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:381)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__55.MoveNext () (at Library/PackageCache/com.unity.visualscripting@1.7.8/Runtime/VisualScripting.Circulate/Circulate.cs:398)
Unity.VisualScripting.Circulate+<InvokeCoroutine>d__<message truncated> 

Two issues about this error are particularly complicated:

  1. The code often works precisely as supposed. It solely throws an error about 5-10% of the time…
  2. 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 easy methods to repair it? Thanks!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments