BrokenBricksECS
BrokenBricksECS copied to clipboard
ComponentGroup API naming
This is both a question and a proposal, the current ComponentGroup API is GetComponent<T> but it returns a ComponentArray. Shouldn't it be GetComponentArray<T> or GetComponents<T>?
For example, if you read:
var inputs = g.GetComponent<InputComponent> ();
it is not clear, I believe it could be better to identify you want a component array and not a component
I know this could be solved also on the user side buy changing it to:
ComponentArray<InputComponent> inputArray = group.GetComponent<InputComponent> ();
But still the ECS API could help.
Well what else should a componentGroup return ;)
Well I could change this but I want to be close to unity's upcoming api
When it comes out, I will suggest them to change it also ;)