Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.29 KB

EntityMap_TKey_.TryGetEntity(TKey,Entity).md

File metadata and controls

27 lines (17 loc) · 1.29 KB

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.