I have a shader tool that generates shader code and user can add and remove textures easily, but they’re not defaulted to anything and ever time they rename or add textures they need to go and set them in Unity manually. Is there a way to set the path in the texture property declaration?
Image_Sampler_4( “Texture”, 2D ) = “C:\Users\Scott\Desktop\Research\maxresdefault.jpg” {}
Image_Sampler_4( “Texture”, 2D ) = “diffuse” { path=“C:\Users\Scott\Desktop\Research\maxresdefault.jpg” }
or something alone those lines?
Also, is there a way to add a texture to a shader, but not expose it to the user, for example if I had a shader that used a specific lookup texture or noise texture that should never be changed by the user, I would need to get it into the pipeline, but not expose it in the material editor.
Thanks!
Scott