Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Best way to have a large list of Ids with a corresponding image set to it?

I have a game with a large number of images, over 1000. I want to access each image based on a given Id. So for example...

 | 1 | Picture_001
 | 2 | Picture_002
 | 3 | Picture_003 

I thought about an enum with a switch or a map but both are unrealistic with over 1000 images.

I then thought about reading from a CSV file but I'm not sure if that will be slow for a UI that may need to draw, say, 30 of these images at a time.

I've also thought about instead of the Id referencing an image, it could reference an Id of a blueprint of the item I want to set the image to. But then I still need a way to get the item via Id.

This is meant to be used with a database so I need this Id pattern. Does anyone know an appropriate way for tackling this? Thanks!

Product Version: UE 4.21
more ▼

asked Feb 18 '19 at 09:38 PM in Blueprint Scripting

avatar image

3 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Don't use an enum for this. Load the csv into a DataTable, you can then fetch by row name.

more ▼

answered Feb 18 '19 at 10:00 PM

avatar image

15.2k 77 25 62

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question