Description

Hidden enum entries cannot be used as default values for UFUNCTION parameters. When using any collisionchannel, the error "Hidden enum entries cannot be used as default values" is received.

Steps to Reproduce
  1. Create a UFUNCTION like the following
    UFUNCTION(BlueprintCallable)
    void Foo(ECollisionChannel CollisionChannel = ECollisionChannel::ECC_GameTraceChannel1);
    2. Give it an empty body
    3. Compile

Result: Error received when compiling

Expected: Project to successfully compile

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-93232 in the post.

3
Login to Vote

Won't Fix
CreatedMay 18, 2020
ResolvedMay 22, 2020
UpdatedAug 24, 2020
View Jira Issue