API

Function RemoveUnreferencedVerticesData

  • Experimental

    Removes unreferenced vertex data from the given meshes. This is useful for cleaning up unused vertex data, such as UV sets, to reduce memory usage and stay under graphics device limits.

    Parameters

    • meshes: readonly Mesh[]

      The array of meshes to clean up.

    Returns void

    This function currently only removes unreferenced UV sets (UV2, UV3, etc.) from the meshes.