Topic: Add Gameobject as building

Hello, I am using another asset to import a .fbx model into unity as a game object, I am currently using it to import the buildings model into unity and I would like to add these game objects into the online map building during run time. How can I add them so they perform similarly with the current buildings, thank you!

Re: Add Gameobject as building

Hello.

Create your GameObject as a 3D marker, and disable your building by id using OnlineMapsBuildings.OnCreateBuilding.
Something like:

OnlineMapsBuildings.instance.OnCreateBuilding += data => { return data.way.id != idWhichShouldNotBeGenerated; };
Kind Regards,
Infinity Code Team.

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