Model replacement via c# Script
I have a scene setup with a model (Proper Textured) and its working fine.
Now my doubt is like this lets say i have Model1 with red texture, then i want to replace Model1 with Model2 where as model2 doesn't have any texture so i want to copy texture from Model1 and apply it to Model2 (Which is same size and oriented as Model1), all this should happen via c# script, is it possible?? and again Texture orientation, size should remain same as Model1.
okay if the above condition works and what if the model2 is different from Model1, will copying texture still works??
Please share your experiences.
Regards, Jung Lee.
you don't need to copy any texture. if you change the mesh on the $$anonymous$$eshFilter component of your model it will just work. if it looks correct depends on the unwrap of the model. does it match that texture?
Your answer
Follow this Question
Related Questions
Keeping the size of a texture constant across different 3D gameobjects 0 Answers
What right way to SetTextureOffset of material which has dynamic count owners? 0 Answers
use sprites as material in 3D shader 0 Answers
Specular Texture with Smoothness Issue 0 Answers
Material disappears after LoadScene 1 Answer