Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question ARFoundation - GenerateBoundaryUVs exception

Discussion in 'AR' started by Archi_16, Jul 19, 2021.

  1. Archi_16

    Archi_16

    Joined:
    Apr 7, 2017
    Posts:
    87
    Hello. After updating my project, I started to get non-fatal errors on Firerbase.
    It is connected with ARFeatheredPlaneMeshVisualizer class, and GenerateBoundaryUVs method.

    Unity version: 2020.3.3 (upgraded from 2018.4.23)
    ARFoundation Version: 4.1.5 (upgraded from 1.5.0, or 2.0.2(can't remember))

    The error is:
    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 <00000000000000000000000000000000>:0) System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <00000000000000000000000000000000>:0) ARFeatheredPlaneMeshVisualizer.GenerateBoundaryUVs (UnityEngine.Mesh mesh) (at <00000000000000000000000000000000>:0) System.Action`1[T].Invoke (T obj) (at <00000000000000000000000000000000>:0) UnityEngine.XR.ARFoundation.ARPlane.Update () (at <00000000000000000000000000000000>:0)

    why is this happening, and how to fix?
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816