I’m using UKismetSystemLibrary::LineTraceSingle to perform line traces in C++. So far my preference for traces (unless I create a new channel for them) has been ECC_Visibility, which is supposed to correspond to TraceTypeQuery4.
I had no trouble with this in a previous project, but in my current one UEngineTypes::ConvertToCollisionChannel is converting TraceTypeQuery4 to ECC_WorldDynamic. Very strange. I haven’t changed any of the project’s collision settings whatsoever. Has anybody run into this before? I’m on UE 5.1.1.
As a follow-up, ECC_Visibility has been assigned to TraceTypeQuery1 in my current project. Again, this is confusing as the last project I made had ETraceTypeQuery values assigned exactly the way I’d learned…and that project was on UE 5.1.1 as well.
In the previous project, I’d created 2 custom object channels for specific purposes but even then…shouldn’t custom trace/object channels be assigned the higher ETraceTypeQuery values, while the lower values are reserved for the engine’s default channels?
Reason why i provided given code is that to know how these ETraceTypeQuery map to ECC_GameTraceChannel, because I scrached my head for a while with theses channels and how they map