Method RemoveComponent
RemoveComponent(Type)
Remove all components that matches the component type.
Declaration
public bool RemoveComponent(Type componentType)
Parameters
Type | Name | Description |
---|---|---|
Type | componentType | The component type. |
Returns
Type | Description |
---|---|
bool |
RemoveComponent<T>()
Remove all components that matches the component type.
Declaration
public bool RemoveComponent<T>() where T : TComponent
Returns
Type | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
T | Type of the component. |