pramberg / MetaSpline

UE4 plugin for a spline component that makes it easy to add metadata to spline points
MIT License
2 stars 0 forks source link

Failed to run in UE5 #7

Open chase03 opened 1 year ago

chase03 commented 1 year ago

Hi! When put the MetaSpline-property-updates branch to UE5.0.3, failed to run and crashed. Could you help me to check this out? Thanks Here is crash error message :

Assertion failed: !"Enclosing block should never be called" [File:F:\UE5Project\RMTP\UE4_EditSplineAtRuntime-master\Plugins\MetaSpline-property-updates\Source\MetaSpline\Private\MetaSplineTemplateHelpers.h] [Line: 31]

UnrealEditor_MetaSpline!UMetaSplineMetadata::UpdateMetadataClass() [F:\UE5Project\RMTP\UE4_EditSplineAtRuntime-master\Plugins\MetaSpline-property-updates\Source\MetaSpline\Private\MetaSplineMetadata.cpp:280] UnrealEditor_MetaSpline!UMetaSplineMetadata::Fixup() [F:\UE5Project\RMTP\UE4_EditSplineAtRuntime-master\Plugins\MetaSpline-property-updates\Source\MetaSpline\Private\MetaSplineMetadata.cpp:177] UnrealEditor_MetaSpline!UMetaSplineComponent::SynchronizeProperties() [F:\UE5Project\RMTP\UE4_EditSplineAtRuntime-master\Plugins\MetaSpline-property-updates\Source\MetaSpline\Private\MetaSplineComponent.cpp:175] UnrealEditor_CoreUObject UnrealEditor_Engine UnrealEditor_Engine UnrealEditor_Engine UnrealEditor_MetaSpline!UMetaSplineComponent::PostEditChangeChainProperty() [F:\UE5Project\RMTP\UE4_EditSplineAtRuntime-master\Plugins\MetaSpline-property-updates\Source\MetaSpline\Private\MetaSplineComponent.cpp:153]

pramberg commented 1 year ago

Hey! Thanks for trying this out :)

It seems like the problem stems from the fact that the CPP type of BP float properties are now doubles in UE5, so the names don't match. I made a branch with some really quick and dirty fixes to get it working. It is probably not a good solution at all, but if you just need something working, feel free to try it out.

Now, I don't recommend using this plugin with UE5 (I don't even consider it stable for UE4), so use it at your own risk!