Method IsComponentEnabled
IsComponentEnabled(Entity)
Checks whether the IComponent
Declaration
public bool IsComponentEnabled(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity whose component should be checked. |
Returns
Type | Description |
---|---|
bool | True if the specified component is enabled, or false if it is disabled. |
Exceptions
Type | Condition |
---|---|
Argument |
The Entity does not exist. |
See Also
IsComponentEnabled(SystemHandle)
Checks whether the IComponent
Declaration
public bool IsComponentEnabled(SystemHandle systemHandle)
Parameters
Type | Name | Description |
---|---|---|
System |
systemHandle | The system whose component should be checked. |
Returns
Type | Description |
---|---|
bool | True if the specified component is enabled, or false if it is disabled. |
Exceptions
Type | Condition |
---|---|
Argument |
The System |