Quantcast
Channel: Latest Questions by secondry2
Viewing all articles
Browse latest Browse all 28

Assigning UV Map to model at runtime

$
0
0
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?

Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>