UParticleSystemComponent::SetAutoAttachmentParameters

Set AutoAttachParent, AutoAttachSocketName, AutoAttachLocationRule, AutoAttachRotationRule, AutoAttachScaleRule to the specified parameters.

Windows
MacOS
Linux

Override Hierarchy

UFXSystemComponent::SetAutoAttachmentParameters()

UParticleSystemComponent::SetAutoAttachmentParameters()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Particles/ParticleSystemComponent.h

Include

#include "Particles/ParticleSystemComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Particles/ParticleComponents.cpp

Syntax

virtual void SetAutoAttachmentParameters
(
    USceneComponent * Parent,
    FName SocketName,
    EAttachmentRule LocationRule,
    EAttachmentRule RotationRule,
    EAttachmentRule ScaleRule
)

Remarks

Set AutoAttachParent, AutoAttachSocketName, AutoAttachLocationRule, AutoAttachRotationRule, AutoAttachScaleRule to the specified parameters. Does not change bAutoManageAttachment; that must be set separately.

Parameters

Parameter

Description

Parent

Component to attach to.

SocketName

Socket on Parent to attach to.

LocationRule

Option for how we handle our location when we attach to Parent.

RotationRule

Option for how we handle our rotation when we attach to Parent.

ScaleRule

Option for how we handle our scale when we attach to Parent.

See Also

bAutoManageAttachment

AutoAttachParent

AutoAttachSocketName

[AutoAttachLocationRule](API\Runtime\Engine\Particles\UParticleSystemComponent\AutoAttachLocationRule)

[AutoAttachRotationRule](API\Runtime\Engine\Particles\UParticleSystemComponent\AutoAttachRotationRule)

[AutoAttachScaleRule](API\Runtime\Engine\Particles\UParticleSystemComponent\AutoAttachScaleRule)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss