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.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.