I noticed in 4.25 a new error started happening.
Can’t use hidden enum values as parameter defaults.
And game trace channels are marked as hidden.
What are we supposed to do in 4.25 and on for default params for game trace channels?
ECC_GameTraceChannel1 UMETA(Hidden),
ECC_GameTraceChannel2 UMETA(Hidden),
ECC_GameTraceChannel3 UMETA(Hidden),
ECC_GameTraceChannel4 UMETA(Hidden),
ECC_GameTraceChannel5 UMETA(Hidden),
Right now in 4.24, it actually works fine. My custom collision channels configured within the engine appear as enum values. And when I try to call a C++ function with this default param from Blueprint, the default param is correctly set to the custom collision profile.
UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category = "Damage", meta = (WorldContext = "WorldContextObject"))
bool ApplyRadialDamage(const UObject* WorldContextObject,
float DamageMultiplier,
float RadiusMultiplier,
const FVector& Origin,
AActor* DamageCauser,
AController* InstigatedByController,
ECollisionChannel DamagePreventionChannel = /*FCollisionConstants::Instance.DamageIgnoreNonSolidTraceChannel*/ ECC_GameTraceChannel2) const;