EntityMap_TKey_.TryGetEntity(TKey,Entity).md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.EntityMap<TKey>

EntityMap.TryGetEntity(TKey, Entity) Method

Gets the Entity associated with the specified key.

public bool TryGetEntity(TKey key, out DefaultEcs.Entity entity);

Parameters

key TKey

The key of the Entity to get.

entity Entity

When this method returns, contains the Entity associated with the specified key, if the key is found; otherwise, an invalid Entity. This parameter is passed uninitialized.

Returns

System.Boolean
true if the EntityMap<TKey> contains an Entity with the specified key; otherwise, false.