Compare Fstring to select by name

Hi, I think my question is quite simple, I need to make via Blueprint something that do a specific thing when it reads a specific material name. How can I make a Fstring comparison that allows me to find all the names that have a specific word in it ?

For example, I want to do stuff that implies my Eyes material, they all have “eye” in their names (Character1_Eye_Mtl, Character2_Eye_Mtl and so on) can I make a comparison with a string like : * Eye * to find them all via Blueprint ? I know I could set an array but I want to do something automatic for workflow purpose.

thanks!

Under the String Category inside your blueprint you have a few search string options suchas

“FindSubstring”

“StartsWith”

“EndsWith”

Hope that helps =)

Yes it works well, I just have to get a FindSubstring and compare the out value, if it is not equal to -1 it means it has find the word in my name, thank you :slight_smile: