https://metaplay.io logo
Have Scriptable Objects as GameConfig
# questions-and-feedback
j
Is there any way to have ScriptableObjects as GameConfig that can be published and deployed like you do with the google sheets config? Some data is easier to setup on unity with custom built tools.
j
Heya, It is possible but we generally don't recommend doing so, it means that you won't be able to do game config builds from the dashboard. We don't have good documentation for this but you can take a look at
LocalFileBuildSourceFetcher
for inspiration, rather than read from a file, you'd load a scriptable object or something similar. Additionally, you'll probably want to do something like https://docs.metaplay.io/feature-cookbooks/game-configs/using-multiple-sources.html#_4-optional-exclude-file-sources-from-the-dashboard to exclude your source from being built from the dashboard (which would throw errors since the files don't exist)
j
Thank you!