Navigation
API > API/Plugins > API/Plugins/PhysicsControl > API/Plugins/PhysicsControl/UPhysicsControlComponent
Description
Activates or deactivates a control or controls in a set. Standard set names will include "All", "WorldSpace", "ParentSpace" and things like "WorldSpace_ArmLeft", depending on how controls have been created.
| Name | SetControlEnabled |
| Type | function |
| Header File | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlComponent.h |
| Include Path | #include "PhysicsControlComponent.h" |
| Source | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Private/PhysicsControlComponent.cpp |
UFUNCTION (BlueprintCallable, Category=PhysicsControl, Meta=(ReturnDisplayName="Success"))
void SetControlEnabled
(
const FName Name,
const bool bEnable,
const bool bApplyToControlsWithName,
const bool bApplyToSetsWithName
)
Parameters
| Name | Remarks |
|---|---|
| Name | The name of the control or set of controls to update. |
| bEnable | Whether to enable/disable the control |
| bApplyToControlsWithName | If true, then controls with the name will be modified |
| bApplyToSetsWithName | If true, then controls in sets with the name will be modified |