Skip to content

Instantly share code, notes, and snippets.

@Nipodemos
Created April 14, 2024 13:25
Show Gist options
  • Select an option

  • Save Nipodemos/f947a4f70f9eaf60941a2497871dadfa to your computer and use it in GitHub Desktop.

Select an option

Save Nipodemos/f947a4f70f9eaf60941a2497871dadfa to your computer and use it in GitHub Desktop.
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.List`1[T].set_Item (System.Int32 index, T value) (at <695d1cc93cca45069c528c15c9fdd749>:0)
CloserMaterial.Utils.CloserMaterial (BuildingDef __instance, UnityEngine.Vector3 pos, System.Collections.Generic.IList`1[T] elements) (at <088ae711cff745b3b1ce341a04e6a206>:0)
CloserMaterial.Tool.PlanTool.buildingPlan2 (UnityEngine.GameObject input, System.Int32 cell, System.Int32 layer, Element elementA) (at <088ae711cff745b3b1ce341a04e6a206>:0)
CloserMaterial.Tool.PlanTool.OnDragComplete (UnityEngine.Vector3 cursorDown, UnityEngine.Vector3 cursorUp) (at <088ae711cff745b3b1ce341a04e6a206>:0)
DragTool.OnLeftClickUp (UnityEngine.Vector3 cursor_pos) (at <3d436e4ec1d5455793674ec559b0cc77>:0)
PlayerController.OnKeyUp (KButtonEvent e) (at <3d436e4ec1d5455793674ec559b0cc77>:0)
KInputHandler.HandleKeyUp (KButtonEvent e) (at <3ca21dc18eae422d87255277091f8593>:0)
KInputHandler.HandleKeyUp (KButtonEvent e) (at <3ca21dc18eae422d87255277091f8593>:0)
KInputHandler.HandleEvent (KInputEvent e) (at <3ca21dc18eae422d87255277091f8593>:0)
KInputController.Dispatch () (at <3ca21dc18eae422d87255277091f8593>:0)
KInputManager.Dispatch () (at <3ca21dc18eae422d87255277091f8593>:0)
KInputManager.Update () (at <3ca21dc18eae422d87255277091f8593>:0)
GameInputManager.Update () (at <3ca21dc18eae422d87255277091f8593>:0)
Global.Update () (at <3d436e4ec1d5455793674ec559b0cc77>:0)
Build: U51-600112-S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment