Topic: Disabled Markers off the Map

I've got code attached to the prefabs I'm using to instantiate new 3D map markers. When I drag the map around so that the marker is off the map, the GameObject gets disabled so that it not longer shows on the screen. What I'd like is a way to keep it enabled so that its code can continue to run, but hide it from view so it's no floating off the edge of the map eating up graphical resources.

Is there a way to handle this easily? Thanks in advance for your help.

Re: Disabled Markers off the Map

Hello.

Unfortunately, you can not do this without modifying the code.

You can work around this by making your logic not in script on the marker.
You make other class, and invoke some public method of your script on each markers.
Or you can subscribe to «OnlineMaps.OnUpdateLate» and your code always will be executed.

Kind Regards,
Infinity Code Team.

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