Loading Text - XML or something else?

Hello All,

Just trying to work out what the best way to load some text in is.

I am going to be having about 150 Objects in my scene and each one when clicked on will need to display some text in a UI text.
I know how to load a text file in, But should I be using XML? Or is that overkill for this?

Thanks,
Rusty

Depends, XML or JSON can hold more structured information but if it is just a bunch of strings you need to extract from the text file you could just use plain text and use either lines or a seperation character like a , to split it into multiple strings.

If the relationship between the object and the text is 1:1 is there any reason you can’t just write the text in the Inspector of the text element for each object?

Passerbycmc - I think the plain text option would work well, I was concerned before about the idea of having to specify an amount of lines for each object from the file. But If I can just break it with something that sounds great!

KelsoMRK - I should have added before that I only want to have one Textbox that when items are selected displays information from a file.

Cheers,
Rusty