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++?
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.