Method SetComponentEnabled
SetComponentEnabled(SystemHandle, bool)
Enable or disable the IComponent
Declaration
public void SetComponentEnabled(SystemHandle systemHandle, bool value)
Parameters
Type | Name | Description |
---|---|---|
System |
systemHandle | The system whose component should be enabled or disabled. |
bool | value | True if the specified component should be enabled, or false if it should be disabled. |
Exceptions
Type | Condition |
---|---|
Argument |
The System |
See Also
SetComponentEnabled(Entity, bool)
Enable or disable the IComponent
Declaration
public void SetComponentEnabled(Entity entity, bool value)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity whose component should be enabled or disabled. |
bool | value | True if the specified component should be enabled, or false if it should be disabled. |
Exceptions
Type | Condition |
---|---|
Argument |
The Entity does not exist. |