Hello fellow devs,
I have an issue that i am working on right that needs some expertise.
Let me describe the context :
- I am calling an URL to dynamically change a text render of a blueprint composed of a cube static mesh and two text render. It’s called BP_Piece.
2.I have my blueprint set up and working for one BP_Piece in that BP_Piece appears with two texts just above it.
My JSON file contains several objects in it.
Based on the number of objects, I would like to spawn BP_Piece actor and set the text to the next object in the list.
So for example, that function would spawn BP_Piece and fill the text render actor with the data coming from my json request.
The output would be :
BP_Piece Name1 Surname1
BP_Piece Name2 Surname2
BP_Piece Name3 Surname3
…
…
And so on.
I already have a function for calling the API with VARest plugin and setting the text. What I want is to kind of parse the JSON file for objects in it, get the needed fields, set the the text and spawn BP_Piece.
Hope I am comprehensive.
Thank you in advance for your answers.