I get this ‘UEDPIE_0_ShowRoom’, when I use GetWorld()->GetMapName(). However, I expect to only have ‘ShowRoom’. UE4 add prefix ‘UEDPIE_0_’ for me. Anyone have solution? Thanks.
UEDPIE is correct cause the map is loaded inside PIE. if you are doing a name check, you would want to strip everything but the name.
Well~ I may use regex to remove the prefix anyway… its so annoying.
How can I get the current map name? - UE4 AnswerHub
here you can find a solution better than regex