# How to add new Collision Object Channel?

**URL:** <https://forums.unrealengine.com/t/how-to-add-new-collision-object-channel/498243>\
**Category:** C++\
**Tags:** unreal-engine, Collision, UE4-26, UE4, CPP, question\
**Created:** [February 15, 2022, 9:58am UTC](https://forums.unrealengine.com/t/how-to-add-new-collision-object-channel/498243 "2022-02-15T09:58:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amba22x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amba22x](https://forums.unrealengine.com/u/Amba22x)\
**Post date:** [February 15, 2022, 9:58am UTC](https://forums.unrealengine.com/t/how-to-add-new-collision-object-channel/498243/1 "2022-02-15T09:58:58Z")

</div>

So when we want new TraceChannel, we just going to Project Settings → Collision → New Trace Channel. If this is first new TraceChannel, then in c++ we can refer to it as `ECC_GameTraceChannel1`

But what if we want new ObjectChannel?  
I have created new ObjectChannel in Project Settings but how i should refer to it in c++?  
 ![rq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/1/7512dcf571cbf4954daf45538531cd99cce15f37.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [February 15, 2022, 11:13am UTC](https://forums.unrealengine.com/t/how-to-add-new-collision-object-channel/498243/2 "2022-02-15T11:13:46Z")

</div>

AFAIC, Trace and Object Channels are only differentiated in the editor so that they would fall into different sections when you select a channel. But they are ultimately the same kind of collision channel for the engine.  
And even though they are called Object Channels in the project settings, they are still Trace Channels in the code and are referred to as ECC\_GameTraceChannelx.  
Open your DefaultEngine.ini and search the name of the custom channel you’ve created. You’ll see the ECC\_ you need right next to it.

---

<div class="post-metadata">

**Author:** ![Amba22x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amba22x](https://forums.unrealengine.com/u/Amba22x)\
**Post date:** [February 15, 2022, 5:12pm UTC](https://forums.unrealengine.com/t/how-to-add-new-collision-object-channel/498243/3 "2022-02-15T17:12:22Z")

</div>

You right, thank you \<3
