Topic: Generate buildings that are within the map only

I realize that some buildings outside the map are generated/created and only displayed/set-active when the user moves to their location, is there a way for me to stop them from creating buildings outside the map? Currently, I am checking if the building is within the map during OnBuildingCreated() and dispose of it if the building is outside of the map tile. Is there a smarter way to do this?

Re: Generate buildings that are within the map only

Hello.

Unfortunately, there is no smarter way.
If you have any suggestions on how to do this, I am always open for discussion.

Kind Regards,
Infinity Code Team.

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