04-03-2021, 04:06 PM
(This post was last modified: 04-03-2021, 04:08 PM by josemendez.)
That line simply reads the mesh tangent vectors, which makes me suspect your mesh has none in the build. If you have this flag enabled:
https://docs.unity3d.com/ScriptReference...1583224178
Unity will remove all mesh data that's not used in shaders at build time. This will strip away tangents, vertex colors, etc. even if some scripts use them. Will also break shaders/lighting if you switch shaders at runtime. Personally not a big fan of it :/.
Try disabling this flag if you have it enabled.
https://docs.unity3d.com/ScriptReference...1583224178
Unity will remove all mesh data that's not used in shaders at build time. This will strip away tangents, vertex colors, etc. even if some scripts use them. Will also break shaders/lighting if you switch shaders at runtime. Personally not a big fan of it :/.
Try disabling this flag if you have it enabled.