Hi,
I’ve noticed settings manager package (com.unity.settings-manager)
manual mentions project settings repository type provided in the package (see manual link):
Settings repositories are used to save and load settingsfor a settings scope. Two are provided with this package: one for saving User preferences (UserSettingsRepository, backed by the EditorPrefs class) and one for Project settings (ProjecSettingsRepository, which saves a JSON file to the ProjectSettings directory).
But there is no such code in the package (checked for versions 1.0.0, 1.0.1 and 1.0.2).
Are there any plans to have ProjectSettingsRepository type in the future versions of the package? Will current package documentation be updated not to mention type which is not present in the package?
Hi @rfadeev ,
Have you tried to use the package?
I mean… Are the code snippets on the mentioned page not working after enabled the package on your project?
If so, I think you should open a bug report here: Unity QA: Building quality with passion
I hope you get a solution to manage the settings of your project!
Hi @DiegoDePalacio_1 ,
Thank you for the response to this thread.
Yes, I tried to use the package sample and it works as expected. My question is about ISettingsRepository implementation mentioned on the manual page (“Two are provided with this package…”): ProjectSettingsRepository. Package code does not include such type. As I’m not sure whether it’s a problem with the package documentation or the package itself, hence my initial post.
Hi @rfadeev ,
From what I understand, the two “repositories”, the documentation is talking about, are SettingsScope.User
and SettingsScope.Project
: Unity - Scripting API: SettingsScope
So you can use the SettingsProvider
to specify which of these two you want to use: Unity - Scripting API: SettingsProvider
I hope this information will help you!
Hi @DiegoDePalacio_1 ,
I’m afraid the documentation in question is not about SettingsScope, it is about settings repositories. Settings repository implements ISettingsRepository interface. Package code has UserSettingsRepository type which implements ISettingsRepository and it’s mentioned in the link I posted above. ProjectSettingsRepository is not present in the package code but is mentioned in the documentation.
Hi @rfadeev ,
In that case, you should open a bug report about it here: Unity QA: Building quality with passion
Good luck with it!