Topic: Drawing Polygon Center Position

is there anyway to get the center position of a Polygon drawing after it has been Redrawn on the tile?

Re: Drawing Polygon Center Position

Hello.

OnlineMapsDrawingPoly.center
https://infinity-code.com/doxygen/onlin … 7034fd1800

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Drawing Polygon Center Position

I trieed it, but when I try to call it on Debug.Log() it won't even draw the polygon nor say what the center of the polygon is


                polygon = new OnlineMapsDrawingPoly(markerPositions, warnaPoly, 1, new Color(1, 1, 1, 0.5f));
                Debug.Log(polygon.center);
                polygonDrawing.Add(polygon);
                poly = OnlineMapsDrawingElementManager.AddItem(polygon);
                poly.name = "marker1";

It also shows an error like this

InvalidCastException: Specified cast is not valid.

Re: Drawing Polygon Center Position

Just checked it out and yes there is a bug in the asset.
Thanks for reporting this.
Problem fixed.
Email me (support@infinity-code.com) and I'll send you a patch.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.