Hello. Is there a way to wrıte dynamıc text on statıc mesh materıal? For example I have a computer screen and the screen ID ıs 2, i want to write my text on to it with preserving material setting like roughness etc.
There is a node called ‘DebugScalarValues’ if you wanted just a number, It’s a pain in the *** to use, but it exists.
First, you need a dynamic material instance.
Second, you need a render-to-texture target.
Third, you map this texture target as one or more of your texture inputs. For example, you can make it modulate the base color, and perhaps emissive, of the material.
Fourth, you render the text to the target.
You could pack the charset(letters and numbers) in a texture, the same way as flipbook sprite sheets work. Then you could sample this texture, picking the right symbol. You would need to perform that times number of symbols in your text. You would pass a float value,corresponding to ID of letter, for each symbol of your text via dynamic material instance. Obviously it is a no-go for anything longer then a few symbols, but it works pretty good for some sort of random markings and especially if you only need numeric symbols.