Skip to content

Allow Settings ScriptableObject to be placed in different folder structures #8

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CoderGamester
Copy link

Currently the package only allows Settings to live in the Assets/ByteBrew/Resources folder.
Some projects grow in scope and this tight structure can become a problem.

Added initial check on ByteBrewSettingsHandler during Settings ScriptableObject asset creation to see if the scriptable object is already present in the Unity project
This check also avoids running the entire logic if the settings already exist

Changes

  • Added dynamic asset discovery using AssetDatabase.FindAssets
  • Implemented fallback to default path when no existing asset is found

Testing

  • Verified asset discovery works in Unity editor
  • Confirmed fallback behavior when no asset exists

- Add dynamic asset discovery using AssetDatabase.FindAssets
- Add fallback to default path when no existing asset is found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant