Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have heard that an update is coming, yet it was a fun exercise to do. I hope it will help some people who want to get started with the pluggin on UE5 in the meantime 😁
What does this PR do?
fix #441, fix #440, and maybe #439
Added the macro
UE_5_CONVERT
inVoxelEngineVersionHelpers.h
to convert some data types to the API changes (it has a cost because we are making a new object on the stack, not casting).Used the macro
UE_5_SWITCH
on several places to adapt to the API changes (when needed, used a check againstVOXEL_ENGINE_VERSION
). As some variables are now postfixed as DEPRECATED some places will need bigger revamps in the near future.Hide minor textures in UE5 from the Voxel details panel as they are now missing.
How was this PR tested?
Tested on UE 5.0.3 as well as UE 4.27.2 that build works. Looked for regression by using side-to-side engines (might have missed some bits as I'm a newbie user)