API reference
RelationIndex<T>.Sources
Enumerates the entities linking to one target (foreach), once per link.
public ref struct SourcesNested in RelationIndex.
Enumerates the entities linking to one target (foreach), once per link.
Properties
Current
public readonly Entity Current { get; }The current linking entity.
Methods
GetEnumerator
public readonly RelationIndex<T>.Sources GetEnumerator();The enumerator itself (foreach support, no allocation).
MoveNext
public bool MoveNext();Move to the next link. O(1) per link.
Edit on GitHub
Last updated on
How is this guide?
RelationIndex<T>
The links of relation T in one world, by target (World.Relations): which entities link to an entity, O(1) to start and O(1) per link.
RemovedAttribute<T>
The ForEachAttribute method visits only entities that lost T since its system last ran (EcsSystem.LastRunTick) and have not got it back…