Navigation
API > API/Plugins > API/Plugins/PhysicsControl > API/Plugins/PhysicsControl/UPhysicsControlComponent
Description
Updates the parent object part of a control or controls in a set. Note that this won't change the name of the control (which may subsequently be misleading), or any set it is included in, etc. Standard set names will include "All", "WorldSpace", "ParentSpace" and things like "WorldSpace_ArmLeft", depending on how controls have been created.
| Name | SetControlParent |
| 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 SetControlParent
(
const FName Name,
UPrimitiveComponent * ParentComponent,
const FName ParentBoneName,
const bool bApplyToControlsWithName,
const bool bApplyToSetsWithName
)
Parameters
| Name | Remarks |
|---|---|
| bApplyToControlsWithName | If true, then controls with the name will be modified |
| bApplyToSetsWithName | If true, then controls in sets with the name will be modified |