protected override void DrawElementInternal(int draw_id, Rect view) { Rect rect = GetElementRect(); if (vectorizer != null) { Sprite sprite = vectorizer.GetTestSprite(); if (sprite != null) { Rect info_rect; rect.SplitByYTopOffset(LINE_HEIGHT, out rect, out info_rect); float line_thickness = vectorizer.GetTestLineThickness(); float point_size = vectorizer.GetTestPointSize(); Vector2 divisor = sprite.GetTextureSize() / rect.size.GetMinComponent(); List <List <Vector2> > paths = vectorizer.VectorizeSprite(sprite) .Convert(l => l.Convert(p => p.GetWithFlippedY().GetComponentDivide(divisor) + rect.center).ToList()) .ToList(); GUIExtensions.DrawSprite(rect, sprite); GUI.Label(info_rect, "Number Vertexs: " + paths.Convert(p => p.Count).Sum()); GUI.color = Color.white; paths.Process(p => GUIExtensions.DrawLoop(p, line_thickness, point_size)); } } }