- Home /
Assigning UV Map to model at runtime
Hello!
I have an OBJ importer working to load custom character models at runtime, however when I assign the texture at runtime via code - js (www download)
new.material.mainTexture = wwwd.texture;
and it doesnt apply the uv/texture map. However if i drag the texture from the UNITY EDITOR, it assigns it to the correct verticies. Not sure how to achieve this, thought it would just work.
Any ideas? Thanks for your time!
--Ben
EDIT: Note, that the texture-vertex assigning is coming from a completely different script. Would I have to re-calculate the co-ordinates?
Your answer
Follow this Question
Related Questions
texture maps render on one side only 1 Answer
What is the best way to texture a Blender Model when working with Unity? 1 Answer
How to set the colour of a texture, but only within certain UV Coordinates? 0 Answers
How to apply different textures to one model? 1 Answer
Texturing a icosphere 0 Answers