This method adds a new component to the actor.
Parameter | Description |
---|---|
T | type to add, must be the name of a class derived from the Component class |
Returns a new component. If the component has already been added, then the existing one is returned.