# UNiagaraFunctionLibrary::SpawnSystemAttached

**URL:** <https://forums.unrealengine.com/t/uniagarafunctionlibrary-spawnsystemattached/478938>\
**Category:** C++\
**Tags:** function-library, unreal-engine, question, CPP\
**Created:** [February 17, 2021, 11:06am UTC](https://forums.unrealengine.com/t/uniagarafunctionlibrary-spawnsystemattached/478938 "2021-02-17T11:06:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxwell1671](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxwell1671](https://forums.unrealengine.com/u/Maxwell1671)\
**Post date:** [February 17, 2021, 11:06am UTC](https://forums.unrealengine.com/t/uniagarafunctionlibrary-spawnsystemattached/478938/1 "2021-02-17T11:06:49Z")

</div>

Hello, can someone help me with the function UNiagaraFunctionLibrary::SpawnSystemAttached ? I can easily call in C++ the function UNiagaraFunctionLibrary::SpawnSystemAtLocation, but the first function throw an error: “no instance of overloaded function matches the argument list” And no matter what parameters and values I use.

---

<div class="post-metadata">

**Author:** ![Andrew\_Bindraw](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrew_bindraw/32/1008648_2.png) [@Andrew\_Bindraw](https://forums.unrealengine.com/u/Andrew_Bindraw)\
**Post date:** [February 17, 2021, 4:48pm UTC](https://forums.unrealengine.com/t/uniagarafunctionlibrary-spawnsystemattached/478938/2 "2021-02-17T16:48:36Z")

</div>

Check examples call UNiagaraFunctionLibrary::SpawnSystemAttached

Here: /Engine/Plugins/FX/Niagara/Source/NiagaraAnimNotifies/Private/ **AnimNotifyState\_TimedNiagaraEffect.cpp**

Line: 25

```
return UNiagaraFunctionLibrary::SpawnSystemAttached(Template, MeshComp, SocketName, LocationOffset, RotationOffset, EAttachLocation::KeepRelativeOffset, !bDestroyAtEnd);

```

Here: /Engine/Plugins/FX/Niagara/Source/NiagaraAnimNotifies/Private/ **AnimNotify\_PlayNiagaraEffect.cpp**

Line: 113

```
ReturnComp = UNiagaraFunctionLibrary::SpawnSystemAttached(Template, MeshComp, SocketName, LocationOffset, RotationOffset, EAttachLocation::KeepRelativeOffset, true);

```

If any problem let me know. My discord Andrew Bindraw#9014
