Gets the Entity associated with the specified key.
public bool TryGetEntity(TKey key, out DefaultEcs.Entity entity);
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.
System.Boolean
true if the EntityMap<TKey> contains an Entity with the specified key; otherwise, false.