# Template Mismatch during attachment. Attaching instanced component to template component

**URL:** <https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/1865353>\
**Category:** C++\
**Tags:** c-c, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, Blueprint, question, CPP\
**Created:** [May 20, 2024, 8:45pm UTC](https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/1865353 "2024-05-20T20:45:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [October 16, 2025, 8:09pm UTC](https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/1865353/3 "2025-10-16T20:09:00Z")

</div>

Using `OnRegister` won’t work long term, unfortunately.

I explain the problem and suggest some solutions [here](https://forums.unrealengine.com/t/problems-spawning-sounds-attatched-to-a-component/2592331/3). Hope this helps others, as I spent days on issues from nested components and decided to figure out what was really going on.

---

_[View the full topic](https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/1865353)._
