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

fix: Warning when loading the options object #1128

Merged
merged 11 commits into from
Jan 16, 2023
Merged

Conversation

bitsandfoxes
Copy link
Contributor

Resolves #1112

We have two OptionConfigurations and by default:

  • One lives in Scripts/RuntimeOptionsConfig.cs
  • The other in Editor/BuildtimeOptionsConfig.cs

During runtime, when the SentryScriptableOptions gets loaded and it has a reference to the buildtime scriptable config it cannot resolve the class (since it lives inside of Editor) which leads to warnings:

The referenced script (Unknown) on this Behaviour is missing!
The referenced script on this Behaviour (Game Object '<null>') is missing!

To make life easier I moved every scriptable object we have to Sentry.Unity and the options and options configs now all live inside of Resource/Sentry/.
There were also a couple of cases where we used the is operator which is not recommended for all Unity objects.

@bitsandfoxes bitsandfoxes merged commit 2700ca1 into main Jan 16, 2023
@bitsandfoxes bitsandfoxes deleted the fix/options-warning branch January 16, 2023 15:29
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.

The referenced script on this Behaviour (Game Object '<null>') is missing!
2 participants