Open Starkium opened 5 years ago
found out why it isn't working, the function is not looking for the short name I assigned the value in the Struct, "Ammo" is the name. Instead it is looking for Ammo_5_19145E324396439F5c10A6941E12EBAC I'm not even sure how I would obtain that from a node if I didn't happen to hover over a populated array and notice the contents were that.
I can think of times when you want to use the literal name of the variable, but I don't even know how to get that from within blueprint.
if I want to pass in any object or variable and get the string literal of it's name or ID or whatever would I just use #variable in c++ example bellow i have a variable in blueprint called ID and it is an int i go to sort a struct based on the name of this variable, but it isn't finding ID, instead it is looking for ID followed by a series of letters and numbers, I assume this is it's literal name second example, I did this same thing with an int named ammo and it wasn't looking for ammo, it was looking for Ammo_5_19145E324396439F5c10A6941E12EBAC i found this on accident in a log and I don't know how to recreate this accident so I am going to make a blueprint node that can get the litteral name, which I assume this is that, so would I just be passing in my variable and then calling #variable ?
The developer (Kris RedBeard) who did the original sort function did not ever update it for newer engine versions, if there is urgency for this I will try and get ahold of him on this matter :)
♥
Rama
There's a distinction between the get authored name and get name -- and that's the difference from the one with the suffix versus that which was provided by the coder.
I tried using the sort function to sort a struct and it doesn't seem to do anything or perhaps the sorted array isn't outputed? I tried looking through the code and it seems like there isn't anything there aside from a comment saying that you should just call the generic function instead. I can't access that in blueprint obviously. Am I doing something incorrectly with this?