Skip to content

Scriptable Settings GetOrFind is not usable during Pre-build and Post-build methods #2

@JeanLFraga

Description

@JeanLFraga

Framework Version

11.0.5

Unity Version

2022.3.30f1

Current Behavior

When trying to find a Scriptable Settings in one of the Pre/Post build methods, the returns are always null.

Expected Behavior

Being able to load a Scriptable Settings from one of the build methods.

Steps to Reproduce

  1. Create a class that inherits from IPreprocessBuildWithReport or IPostprocessBuildWithReport.
  2. On the respective method, call ScriptableSettings.GetOrFind(out SettingsType settings).

Workaround

It is currently possible to load a Scriptable settings in these stages, utilizing ScriptableSettingsUtility.LoadOrCreate, but this can create unwanted behavior such as overwriting your settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions