capacity
The expected world capacities used to presize internal allocations when the PhysicsWorld is created. All counts default to zero, in which case the engine uses its own minimum defaults. Presizing avoids reallocations during the first simulation steps for worlds with a known object count. Every count is in the range zero to 65535 and any value outside that range is clamped into it.
読み終わるまでの所要時間 1 分最終更新 21日前
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsWorld.WorldCapacity capacity { readonly get; set; }