The player can have access to any feature layer and modify it
Hi, There. In the game that I am developping currently, I want to let the player modify feature layers inside the game.
For example, if i spawn cars in the road layer; how to let the player modify the number of cars their functionnatilities when playing; how can I as a developer use a UI and a script for example to
add that.
The second question that is related to this issue is how can we modify the scriptable objects (the game object modifiers (e.g the feature behaviour modifier, the prefab modifier, the loft modifier , etc.)
- Unity version: 2017.4.17f1
- Mapbox SDK version: 2.0.0 @jordy-isaac @brnkhy @atripathi-mb
@roura-12 thanks for the ticket.
As for the first question you might want to use a AddMonoBehaviorsModifer and wire a UI that you want a player to use to a UI canvas.
To make custom modifiers, you can use the ones in the SDK, make your customizations and save it with a new name.
Create a modifer using the Mapbox Menu by right clicking:

After that you can use the Add Existing option in the UI to add the newly created modifer to the layer.
thanks a lot.