mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

The player can have access to any feature layer and modify it

Open roura-12 opened this issue 7 years ago • 2 comments

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 avatar Mar 24 '19 19:03 roura-12

@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: Screen Shot 2019-03-31 at 11 31 44 PM

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

custom-modifier

jordy-isaac avatar Apr 01 '19 06:04 jordy-isaac

thanks a lot.

roura-12 avatar Apr 01 '19 08:04 roura-12