This is because ENetMote is not a a UCLASS, USTRUCT or UENUM. UHT can't see or parse types that are native only.
Marking a function as BlueprintPure will result in a UHT build failure in Visual Studio if the function returns an ENetMode value. The ENetMode enum is not marked as a UENUM(), causing the build to fail.
UFUNCTION(BlueprintPure, Category = "Replication") ENetMode GetTheNetMode() const;
ENetMode ATestUHTCrash1Character::GetTheNetMode() const { return NM_Standalone; }
RESULT:
The build will fail with the message Unrecognized type 'ENetMode'
EXPECTED:
The build finishes successfully.
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.8.2, 4.10 |
Target Fix | 4.10 |
Created | Aug 5, 2015 |
---|---|
Resolved | Aug 7, 2015 |
Updated | Feb 5, 2017 |