EntityMultiMap_TKey_.TryGetEntities(TKey,ReadOnlySpan_Entity_).md
March 19, 2022 ยท View on GitHub
DefaultEcs
DefaultEcs.EntityMultiMap<TKey>
EntityMultiMap.TryGetEntities(TKey, ReadOnlySpan) Method
Gets the Entity instances associated with the specified key.
public bool TryGetEntities(TKey key, out System.ReadOnlySpan<DefaultEcs.Entity> entities);
Parameters
key TKey
The key of the Entity instances to get.
entities System.ReadOnlySpan<Entity>
When this method returns, contains the Entity instances associated with the specified key, if the key is found; otherwise, the type default value. This parameter is passed uninitialized.
Returns
System.Boolean
true if the EntityMultiMap<TKey> contains Entity instances with the specified key; otherwise, false.