UPROPERTY<EditAnywhere> TMap doesn't work

I want to edit my TMap in GameMode on Editor

I did like this, but in C++, it is nullptr…
What can i do for this?

image

You dragged the class into the world and edited it afterwards, right?

In the constructor it will always be empty, did you try it in/after BeginPlay()?

1 Like

Although it’ll appear as a Map you can edit within the Editors in the Details Panel you won’t be able to access it via blueprint without the UPROPERTY specifier “BlueprintReadWrite”. You’ll want to add it like so:

when you’ve done so you’ll be able to both set the values in the Details Panel and get/set the key/value pairs in the blueprint graph:

1 Like

Thank you for your help!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.