EntityEdit#add(Component) first creates a component using reflection and then replaces it with the component provided in argument. Why not just use the argument component directly.
It needlessly creates an extra component to be garbage collected as well as time taken to create that component using reflection. Seems like a simple fix.
Am I missing something?
EntityEdit#add(Component) first creates a component using reflection and then replaces it with the component provided in argument. Why not just use the argument component directly.
It needlessly creates an extra component to be garbage collected as well as time taken to create that component using reflection. Seems like a simple fix. Am I missing something?