Hi, no, I afraid it won’t. This code is used by the editor when it created material from export files. It can’t be done runtime. The way I did it was creating a material with parameters and some custom HLSL code to define behavior based on them(since standard material expressions don’t have too many logical nodes).