Navigation
API > API/Plugins > API/Plugins/PhysicsControl > API/Plugins/PhysicsControl/UPhysicsControlComponent
Description
Updates the parent object part of controls or controls in a set. Note that this won't change the name of the controls (which may subsequently be misleading), or any set they are included in, etc. Standard set names will include "All", "WorldSpace", "ParentSpace" and things like "WorldSpace_ArmLeft", depending on how controls have been created.
| Name | SetControlParents |
| 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)
void SetControlParents
(
const TArray < FName > & Names,
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 |