文档

Unity Engine

Unity Engine

Dispose()

Disposes of the native memory allocated by the collection.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public void Dispose()

Remarks

If the ColliderArray2D.Length is zero, calling Dispose is optional as no memory would have been allocated in that case.