Fixing short type name warning messages

I was getting weird warning messages while updating my plugin to UE5.1.

LogClass: Warning: Short type name "EKronosMatchmakingFlags" provided for TryFindType. Please convert it to a path name (suggested: "/Script/Kronos.EKronosMatchmakingFlags").

I finally figured out that it was referring to a Bitmasked function param. So to fix the issue, I had to change

void ExampleFunction(UPARAM(meta = (Bitmask, BitmaskEnum = EKronosMatchmakingFlags)) int32 InFlags = 0);

to

void ExampleFunction(UPARAM(meta = (Bitmask, BitmaskEnum = "/Script/Kronos.EKronosMatchmakingFlags")) int32 InFlags = 0);
30 Likes

Thank you :wink:

And thank you also. Mine turned out to be a default subobject I was creating with the name β€œScene” from code.

1 Like

I found a fix to the bitflag issue, thanks anyway.
.
.
.
.
.
.
.
.
.

...Ok I'm not an a* XD, open Here for the fix

Unreal (at 5.4) even if you specify the correct path to the Enum in the UFUNCTION meta, keeps behaving badly when using bitflags in variables if you do not add =β€œβ€ to the Bitmask meta.

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="Your Category", meta=(Bitmask="", BitmaskEnum="/Script/YourProjectName.EnumName"))
		int32 YourBitMaskInt= 0;
1 Like

Thank you! That worked for me!