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

Probuilder - Merge - IndexOutofRangeException

Discussion in 'Editor & General Support' started by master_rigel, Jul 2, 2019.

  1. master_rigel

    master_rigel

    Joined:
    Mar 24, 2014
    Posts:
    69
    See Normals.cs
    s_CachedIntArray = 0;

    Okay. So I looked into the code on this one, and the problem is a variable limitation.

    Int does not support numbers over 2,147,483,647

    I hit this limit when working with Probuilder merge.

    Now, whether this is because of the verticies or the sheer object space, I'm not sure, but I do know that Probuilder didn't like it.

    If this value were updated to a decimal value throughout the code, that would fix the problem, but not without a performance hit.

    Switching to a decimal value will dramatically slow down the merge, and will require a restart of the editor.

    A new metafile may need to be generated for script, and this may require a re-import of the script and/or its encapsulating functionality.