-
Notifications
You must be signed in to change notification settings - Fork 0
Map Options
Map options allow you to add some customization to your maps by letting the user choose between custom defined options specific to them.
First create a Map Options object by heading to GameObject -> BRC MapStation -> Map Options. There should only be 1 of this component per map.
You'll be presented with a blank Map Options component. Click the "Add" button to add your first option.
The "Name" field should be unique to each option.
By default, the possible values will be OFF and ON, but you can remove/rename/add new ones as you wish. Make sure you also pick the value you want to be the default using the "Default value" dropdown.
The "Description" and "Preview Camera" fields are optional. These will be displayed in-game when the player is changing map options if they're set.
If you want to create a Preview Camera, create a new Camera in your scene and give it the "Camera Registerer" component.
Make sure the GameObject for the preview camera is not set to active, then assign it to your Map Option.
In-game, you should now have a "Map Options" app in your phone.
To make a GameObject activate/deactivate depending on map options, add an "Active On Map Option" component to it.
Pick your desired option using the Option dropdown, and then add the Values you want to make the GameObject activate using the "Add" button under "Values"
The following will make the GameObject active when the "Quality" map option is set to either "Medium" or "High"
You can set the Filter Mode to "Option Doesnt Match Any Value" to invert the condition, so the GameObject will only be active when the map option is NOT "Medium" or "High"
To switch skyboxes using map options, create a GameObject with a "Skybox Switcher" and "Active On Map Option" components, configured as you wish.
Questions? Join our Discord: https://discord.gg/7rwtDt6Dyj