I was trying to get the values (metadata) from the datasmith user data, but I can only get the value or key with index 0.
When I use Get Datasmith User Data Value for Key, if the key is Datasmith_UniqueId, I can print out the value I need. But if I change the key to Element_Area or Element_Category, it will print out nothing.
I also tried the Get Datasmith User Data, and the same result occurs even when I add a for each loop.
Is there any way to get the value I need? I am using UE5 and level blueprint in this practice.
I found a solution which might work for you. I had exactly the same problem where the code was only returning the Key Index 0 value.
The answer for me was to make sure the selected object in Get Datasmith User Data or Get Datasmith User Data Value for Key was actually an object in my level (not a reference to a file in my Content Browser).
A quick way to test this is to run from Begin Play:
Get All Actors Of Class (set to Static Mesh)
For Each Loop
Get Datasmith User Data Value for Key (type one of your keys)
Print String
From there it should be simple to convert to something which gives the data on a mouse click and extend the outputs to whatever you need. The Example Usage section in the documentation page shows how to do this: