I'm working on a lens where there is a part that involves the user drawing a polygon by tapping locations on the screen. I get the position of the taps and convert that into a position for the MeshBuilder. This works fine on the preview, but on my google pixel it doesn't show any mesh. I know that the positions are correct because when I hardcode a mesh into the MeshBuilder with the same positions as what it is calculating for the taps, it works fine. Is this a bug, or am I doing something wrong?
The script is very long, but I'm basically just appending vertices interleaved, appending the index for it, and building the mesh for each point to a MeshBuilder on Line Strip mode, and afterwards calculating the indices to connect to fill in the shape and building a mesh in Triangles mode. This works perfectly on preview and only works with hardcoded numbers on my phone.
Please sign in to leave a comment.