UNiagaraComponent::SetAutoAttachmentParameters

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

Windows
MacOS
Linux

Override Hierarchy

UFXSystemComponent::SetAutoAttachmentParameters()

UNiagaraComponent::SetAutoAttachmentParameters()

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraComponent.h

Include

#include "NiagaraComponent.h"

Source

/Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraComponent.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](API\Plugins\Niagara\UNiagaraComponent\AutoAttachSocketName)

[AutoAttachLocationRule](API\Plugins\Niagara\UNiagaraComponent\AutoAttachLocationRule)

[AutoAttachRotationRule](API\Plugins\Niagara\UNiagaraComponent\AutoAttachRotationRule)

[AutoAttachScaleRule](API\Plugins\Niagara\UNiagaraComponent\AutoAttachScaleRule)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback