You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project that requires multiple GoogleDriveSettings is there a way to load a specific one at runtime? From what I see in GoogleDriveRequest.cs it always does GoogleDriveSettings.LoadFromResources() which always defaults to Resources/GoogleDriveSettings
How do you recommend changing/loading different GoogleDriveSettings?
The text was updated successfully, but these errors were encountered:
Changing the settings at runtime is not possible by design. In case you just need to change the values, reflection could work, though it's obviously not optimal.
I can imagine that in some cases changing the settings at runtime could be useful; it would be nice to move the settings from scriptable object to a JSON file and allow the modifications at runtime. Unfortunately, I don't currently have time to work on this, but I'll leave this issue open in case anyone would be interested to pick it up.
Found a good enough solution for myself. Assuming you only need to select which Google Drive Setting you want on startup, then you can create multiple GoogleDriveSetting scriptable objects and just set the main GoogleDriveSettings scriptable object to the one you want to use before your first GoogleDriveRequest.
I have a project that requires multiple GoogleDriveSettings is there a way to load a specific one at runtime? From what I see in
GoogleDriveRequest.cs
it always doesGoogleDriveSettings.LoadFromResources()
which always defaults toResources/GoogleDriveSettings
How do you recommend changing/loading different GoogleDriveSettings?
The text was updated successfully, but these errors were encountered: