EntityManager.EntityManagerDebug
Provides information and utility functions for debugging.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public readonly struct EntityManager.EntityManagerDebug
Constructors
Constructor | Description |
|---|---|
| EntityManagerDebug(Unity.Entities.EntityManager) | Creates an EntityManagerDebug from an EntityManager |
Properties
Property | Description |
|---|---|
| EntityCount | The number of entities in the referenced EntityManager |
| HighestIndexEntity | The highest entity index of all the entities in the EntityManager |
| MemoryInitPattern | A specified memory pattern used when initializing new chunks if EntityManager.EntityManagerDebug.UseMemoryInitPattern is set to true |
| UseMemoryInitPattern | Determines if chunks created in the EntityComponentStore use the specified EntityManager.EntityManagerDebug.MemoryInitPattern |
Methods
Method | Description |
|---|---|
| CheckInternalConsistency | Several checks to ensure that the EntityComponentStore has all references that are expected at this time as well as the expected number of entities. |
| GetComponentBoxed | Gets the component object of a given entity based on the type |
| GetEntityInfo | Creates a string with the information about a given entity including the entity's version, index, and archetype. |
| IsSharedComponentManagerEmpty | Checks to see if the world holds any shared component values |
| LogEntityInfo | Debug logs information about a given entity including the entity's version, index, and archetype |
| PoisonUnusedDataInAllChunks | Sets all unused chunk data for an archetype to the specified byte value. |
Static Methods
Method | Description |
|---|---|
| GetLastWriterSystemName | Gets the name of the system that last modified the component type of the given chunk |
| GetSystemProfilerMarkerName | Returns the name used for the profiler marker of the passed system. This is useful for inspecting profiling data using the ProfilerRecorder API. |