This is great, although current unreal engine comes with Sort function, and Algo::Sort. Now, how would you sort an array of FDateTime ? It has build in operator
Not sure, haven't opened UE in years...it was still UE4 when I last used it haha but I'm glad they finally started getting some of these basic functions down in blueprints. That's convenient
I'm learning C++ and blueprint, but my understanding sorta diverges when it comes to the unreal specifics in the code. Can you update your code with comments, or make another video walking through the code, and how it relates to the BP node? - Thanks for the video!
I have a separate node that sorts "actors" based on distance from a target actor. I don't have anything that sorts "meshes" in particular. What exactly are you trying to achieve? How do you want your meshes sorted? Are they just meshes or blueprints (actors)?? This is the distance sorting video if you are interested. th-cam.com/video/cWesVY0zF0U/w-d-xo.html
For anyone having problems with this in UE4.22 you might have an out of date version of Visual Studio 2017 installed, I had to open it and update to the newest version. Also. How would one go about sorting an array of static meshes or scene components by object name?
I've spent days trying to figure out how to sort arrays of meshes, and it seems crazy there is no built in node.. but there is these free BP plug-in with those features etc.. it worked for me, but I would really like to see it done in C++ as well. here's how to use the plugin: answers.unrealengine.com/questions/387574/how-to-sort-an-array-alphabetically.html
Thank you to share. Very usefull.
Thanks a lot !
This is great, although current unreal engine comes with Sort function, and Algo::Sort.
Now, how would you sort an array of FDateTime ? It has build in operator
Not sure, haven't opened UE in years...it was still UE4 when I last used it haha but I'm glad they finally started getting some of these basic functions down in blueprints. That's convenient
How can this be adapted to sort an array of structs?
@@nortski78 I'm sure you can, unfortunately I haven't messed with this stuff in years so I couldn't tell you how to do it.
@@NebulaGamesInc No problem. I found a solution using: Algo::SortBy(Array_To_Sort, &FPlayerScore::Score);
I'm learning C++ and blueprint, but my understanding sorta diverges when it comes to the unreal specifics in the code. Can you update your code with comments, or make another video walking through the code, and how it relates to the BP node? - Thanks for the video!
Sure. I will post updated code with comments later. Glad you like the video!
Here is the one with some comments, let me know if you need further desc
pastebin.com/bPuRTicU
how can i sort spawned meshes?
I have a separate node that sorts "actors" based on distance from a target actor. I don't have anything that sorts "meshes" in particular. What exactly are you trying to achieve? How do you want your meshes sorted? Are they just meshes or blueprints (actors)?? This is the distance sorting video if you are interested.
th-cam.com/video/cWesVY0zF0U/w-d-xo.html
For anyone having problems with this in UE4.22 you might have an out of date version of Visual Studio 2017 installed, I had to open it and update to the newest version.
Also. How would one go about sorting an array of static meshes or scene components by object name?
I've spent days trying to figure out how to sort arrays of meshes, and it seems crazy there is no built in node.. but there is these free BP plug-in with those features etc.. it worked for me, but I would really like to see it done in C++ as well. here's how to use the plugin:
answers.unrealengine.com/questions/387574/how-to-sort-an-array-alphabetically.html