Announcement

Collapse
No announcement yet.

How About This RandomFString?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How About This RandomFString?

    Click image for larger version

Name:	QQ截图20201004094731.png
Views:	30
Size:	713.5 KB
ID:	1818340
    Will using switch in this way consume too much computation?

    #2
    Depends on how many times you run the loop but this should be fine. Switches are pretty performant and the way you wrote this doesn't jump out at me with any obvious issues. You put a lot of work into that!

    Personally, I would have had a single string with all of the possible letters I wanted to use, then on each loop get a substring of the string containing all the letters. Substring would start at a random index and go for a length of 1. That would be much shorter for you to write
    iTween For UE4
    Procedural pathed animation for actors, components & UMG - $0
    Runtime DataTable
    DataTables dynamically loaded from text or Google Sheets while your game is running!
    easyCSV
    Fast, cheap, and accurate CSV parsing at runtime!

    Comment

    Working...
    X