Entitas  0.35.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
Entitas.CollectionExtension Class Reference

Static Public Member Functions

static Entity SingleEntity (this ICollection< Entity > collection)
 

Detailed Description

Definition at line 5 of file CollectionExtension.cs.

Member Function Documentation

§ SingleEntity()

static Entity Entitas.CollectionExtension.SingleEntity ( this ICollection< Entity collection)
inlinestatic

Returns the only entity in the collection. It will throw an exception if the collection doesn't have exactly one entity.

Definition at line 10 of file CollectionExtension.cs.


The documentation for this class was generated from the following file: