Skip to content

Unreal Engine 5 Preview 1 support #245

Closed
@tonetechnician

Description

@tonetechnician

Hey there!

I've been trying to port a project that relies on UnrealCLR to UE5 Preview 1. I've found a strange compilation issue to occur

D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Private\UnrealCLRFramework.cpp(407): error C2338: Invalid elements count of the [ControllerHand] enumeration
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Private\UnrealCLRFramework.cpp(410): error C2338: Invalid elements count of the [PixelFormat] enumeration
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Private\UnrealCLRFramework.cpp(412): error C2338: Invalid size of the [Bounds] structure

Checking these structs I don't see that there is an issue with the static_assert but it still seems to fail.

In a clean project I can simply comment these lines and the issue goes away and I can compile. But in my current more complex project, when I comment the lines, I run into 100+ compilation errors.

1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(35): error C2653: 'ESplineCoordinateSpace': is not a class or namespace name
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(35): error C2061: syntax error: identifier 'Type'
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(36): error C2653: 'ESplinePointType': is not a class or namespace name
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(36): error C2061: syntax error: identifier 'Type'
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(39): error C2061: syntax error: identifier 'EAudioFaderCurve'
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(41): error C2061: syntax error: identifier 'EViewTargetBlendFunction'
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(45): error C2061: syntax error: identifier 'EHorizTextAligment'
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(50): error C2061: syntax error: identifier 'EVerticalTextAligment'
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(51): error C2061: syntax error: identifier 'EPlaneConstraintAxisSetting'
1>D:\Unreal Projects\Project\Plugins\UnrealCLR\Source\UnrealCLR\Public\UnrealCLRFramework.h(487): error C2143: syntax error: missing ';' before '*'

It seems like it could be an issue with UE5 Preview UHT/UBT as the errors don't really make sense - UE5 Early Access there is no issue. Wondering if anyone else has experienced this, or if there may be a quick fix for now?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions