Functions
The following functions are available globally.
-
Returns the first component found in the array of
IComponents that matches the specified system. For convenience, the returned component is casted to the specified type.Declaration
Swift
public func getTypedComponent <T: IComponent> (components:[IComponent], system:Systems) -> T?Parameters
componentsThe array of components to search.
systemThe ID of the system that this component is associated with.
Return Value
The component, casted to the specified type, or
nilif the component was not found or was the wrong type.
-
Undocumented
View on GitHub
Functions Reference