# Create a new Custom Trace Channel at runtime? (C++)

**URL:** <https://forums.unrealengine.com/t/create-a-new-custom-trace-channel-at-runtime-c/753463>\
**Category:** C++\
**Tags:** trace-channels, unreal-engine, Collision, runtime, Plugins, CPP\
**Created:** [January 20, 2023, 9:35am UTC](https://forums.unrealengine.com/t/create-a-new-custom-trace-channel-at-runtime-c/753463 "2023-01-20T09:35:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anti-Wisdom](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anti-wisdom/32/575220_2.png) [@Anti-Wisdom](https://forums.unrealengine.com/u/Anti-Wisdom)\
**Post date:** [January 20, 2023, 9:35am UTC](https://forums.unrealengine.com/t/create-a-new-custom-trace-channel-at-runtime-c/753463/1 "2023-01-20T09:35:21Z")

</div>

I know how to create custom Trace channels or object types using the Project settings, but I’m making a plugin and would like this process to become automated on startup of the game.  
I’ve seen very little information on this topic and all current methods seem overly complicated at the moment (mainly due to the relevant members of classes such as CollisionProfile being private), requiring either modifying the .Ini files directly or extending these classes in the editor with your own custom module.

Has any way been implemented to add these collision responses or trace channels through c++?

---

<div class="post-metadata">

**Author:** ![RotemS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RotemS](https://forums.unrealengine.com/u/RotemS)\
**Post date:** [January 22, 2023, 1:53am UTC](https://forums.unrealengine.com/t/create-a-new-custom-trace-channel-at-runtime-c/753463/2 "2023-01-22T01:53:01Z")

</div>

What would be the use of a trace channel that isn’t accessible in the editor? How would you set any objects to block it?

---

<div class="post-metadata">

**Author:** ![Anti-Wisdom](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anti-wisdom/32/575220_2.png) [@Anti-Wisdom](https://forums.unrealengine.com/u/Anti-Wisdom)\
**Post date:** [January 22, 2023, 9:47pm UTC](https://forums.unrealengine.com/t/create-a-new-custom-trace-channel-at-runtime-c/753463/3 "2023-01-22T21:47:54Z")

</div>

The issue is that my plugin depends on this channel existing and I don’t want to force the user to create it manually. I want to add a custom trace channel to the project settings automatically using c++, this sounds like it should be a fairly straightforward task, but it is not.

---

<div class="post-metadata">

**Author:** ![z1kkky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@z1kkky](https://forums.unrealengine.com/u/z1kkky)\
**Post date:** [December 26, 2024, 12:34pm UTC](https://forums.unrealengine.com/t/create-a-new-custom-trace-channel-at-runtime-c/753463/4 "2024-12-26T12:34:48Z")

</div>

@Anti-Wisdom Did you figure it out? I have quite the same problem.
