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?
↧