Topic: Align Center Custom UGUI Marker

I am using Custom Markers and a custom MarkerEngine to add markers to the GUI on a 2D map. However the Markers Always seem to be aligned bottom. I need to align the Marker so that the Position of the Marker is aligned center. Is there a simple way to do this in the Custom Marker Engine?

Re: Align Center Custom UGUI Marker

Hello.

Simply remove (comment out) the line 149:

screenPosition.y += markerRectTransform.rect.height / 2;
Kind Regards,
Infinity Code Team.

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

Re: Align Center Custom UGUI Marker

Thanks Alex! Works perfectly. Not sure how I missed this line.