Could you elaborate?
Like are you trying to save material parameters, or are you trying to save a reference to a material/texture, or something else?
The title is not very descriptive. Please say what the purpose is.
How to dynamically change the text on the material when the program is running?
Sorry,I mean the program dynamically modifies the text on the material when running?
As far as I’m aware, no materials even use strings/text. Everything that displays text has a separate parameter for it.
If you’re wanting to use the TextRender, it has a field
Same case in widgets
For future reference, to edit the parameters of a specific material at runtime you’ll want to convert the materials to dynamic materials (has to be done at runtime). That can be done like so:
Then, you can cast the material to a dynamic one whenever you need to change something: