04-22-2022, 02:37 PM
(This post was last modified: 04-22-2022, 02:50 PM by studentloan.)
Unfortunately am still getting an exception even when I apply the said code change
I've attached a screenshot of the error
Edit: btw, if I add a standard cube into the Prefab then it works but if I just have my road prefab as-is, it crashes (Only in the mono build, not in editor, editor works fine)
Btw, you will have to enable the development build to see the exception otherwise it's silent and Spline segments can't be added dynamically, it goes completely unnoticed otherwise and you notice is when you debug
I don't know if this will help but it seems that, inputMeshTangents is a vector of size 0 as inputMesh.TangentsList.Array seems to be
unpopulated. If I add a simple cube to the game object then it works.
I've attached a screenshot of the error
Edit: btw, if I add a standard cube into the Prefab then it works but if I just have my road prefab as-is, it crashes (Only in the mono build, not in editor, editor works fine)
Btw, you will have to enable the development build to see the exception otherwise it's silent and Spline segments can't be added dynamically, it goes completely unnoticed otherwise and you notice is when you debug
I don't know if this will help but it seems that, inputMeshTangents is a vector of size 0 as inputMesh.TangentsList.Array seems to be
unpopulated. If I add a simple cube to the game object then it works.