Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving and loading Log Settings #803

Closed
James-Frowen opened this issue May 18, 2021 · 1 comment · Fixed by #951
Closed

Saving and loading Log Settings #803

James-Frowen opened this issue May 18, 2021 · 1 comment · Fixed by #951
Labels

Comments

@James-Frowen
Copy link
Member

Saving and loading Log Settings

Option 1 (current): Component+Editor Prefs

Change Level via Component and save them in Editor Prefabs.

Build: Load log levels in awake of Component
Editor:

  • Entered EditMode -> Load levels from EditorPrefs
  • Exit Playmode -> Save to EditorPrefs

Problems:
Very difficult to use correctly in editor, see:

Option 2: File in project settings folder

Change level via settings menu and save them to ProjectSettings folder

Build: Create Resources/LogSettings.Asset file on build, load in build using Resource.Load
Editor: Load/Save file from ProjectSettings

Problems:
Have to create Resources durning build and clean it up after if it didn't previously didnt exist

Option 3: Scriptable Object in Assets Folder

Change level via settings menu or ScriptableObject and save them to Somewhere in asset folder

Build: Use a component to reference the ScriptableObject and load them in awake (or load it using Resource.Load ?)
Editor: Find ScriptableObject in Asset folder (check default path, if not search for it by type). Change object will automatically serialize/save.

Problems:

  • Need ScriptableObject somewhere in Asset folder
  • Need to find ScriptableObject in order to load it
@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2021

🎉 This issue has been resolved in version 106.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant