Struct to value (set texture value from String)

Hello everyone,

I have a json file for materials and want to create them dynamically in editor using the Data table int,floats, and strings.

My Question is how do I get a string to value (texture value) so I can set a texture param value using only the name of the texture from a string in the data table.

Thank you.

You could make another data table that maps a unique name to each texture, then you can use the field in your other table to lookup the actual texture in the other table.

I literally just figured out I can do that the json had .jpeg in the names removing that and reimporting with texture as variable in struct works thank you