- Home /
Question by
DaDonik · Feb 21, 2015 at 03:13 PM ·
canvasvertexvectrosity
How to get the number of vertices contained within a Canvas?
Since a Canvas is limited to 65535 vertices, i thought there must be a way to retrieve the current amount of vertices a Canvas contains.
I'm working on a graph visualizer using Vectrosity and i will most likely surpass the 65k limitation, so i wrote a class that creates a new Canvas if the vertex limit is reached. Instead of keeping track of the vertex count, i would rather query the Canvas for the current amount of vertices...this should be possible imo...
A Canvas does not contain a MeshFilter component, so it's not possible to retrieve the amount of vertices from the Mesh of that MeshFilter.
The Canvas component itself doesn't provide any info on the number of vertices.
Any ideas?
Comment