I have "Make Brush from Texture" node and I am able to select textures from the dropdown list in editor, but how I can set this texture field realtime from blueprint if its name is saved in the string variable (for example, "af"). Thanks.
Example:
https://blueprintue.com/blueprint/4indn35l/
SUGGESTION:
In theory, there should be an ARRAY with all loaded system textures that I can loop, compare the name of the texture one-by-one, and post the right texture to in-socket of "Make Brush from Texture".
Thanks!
You can do this by using soft object paths.
Make Soft Object Path
nodePath String
should be the full path of a valid texture. You can see what that should look like by right-clicking one of your textures in the asset browser, selecting 'Copy Reference', and pasting that into a text field.Cast To Texture2D
node.Make Brush From Texture
node.