subscript(_:)
Returns the component at the specified index in the system’s list of components.
Declaration
subscript(idx: Int) -> ComponentType { get }Parameters
- idx:
A valid index to the Components array.
Return Value
The component at the specified index in the components array.
Discussion
This method is equivalent to accessing objects by index in the components array, but allows access using subscript syntax on the component system itself.