Archetype.EnsureCapacity(int).md

February 25, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.Archetype

Archetype.EnsureCapacity(int) Method

Allocates memory for entity components in the archetype to enable adding entity components without reallocation.

public int EnsureCapacity(int capacity);

Parameters

capacity System.Int32

Returns

System.Int32
The number of entities that can be added without reallocation.

Contents

  1. 0.1Friflo.Engine.ECS.Archetype
  2. 1Archetype.EnsureCapacity(int) Method