Unity Engine documentationScript ReferenceUnity.CollectionsUnity.Collections.LowLevel.UnsafeUnsafePtrList<T>TrimExcess()Sets the capacity to match the length.阅读时间1 分钟最后更新于 2 个月前Definition Type: Method Namespace: Unity.Collections.LowLevel.Unsafe Assembly: UnityEngine.ManagedKernelModule public void TrimExcess()