TriAxis-Games / RealtimeMeshComponent

Unreal Engine 5 plugin component for rendering runtime generated content.
https://rmc.triaxis.games/
Other
1.58k stars 412 forks source link

Supporting UE 5.0.0: Adding explicit conversions. #226

Closed sfla closed 2 years ago

sfla commented 2 years ago

In UE5 Preview 2 it was possible to say FVector3f a = FVector(0), I.E. there was an implicit conversion between the two. This was seemingly removed in UE 5.0.0 release, so explicit conversions are required. I've only changed variable to FVector(variable) (and vice versa) all places where this is occurring. There may be places where this could be further optimized by changing the original type from/to FVector<->FVector3f (and FBox, FPlane, etc), but this PR only adds the removed conversion to work exactly like it did for Preview 2.