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

Project Context: "Null Installer" assert hit when using Prefab Variant only on built version #285

Open
andresagr98 opened this issue Apr 25, 2023 · 0 comments

Comments

@andresagr98
Copy link

andresagr98 commented Apr 25, 2023

Describe the bug
The project context resolves just fine in Editor but, in runtime it will hit a "Null installer" error.

To Reproduce
Create a project context prefab outside of the assets/resources folder.
Add two mono installers to it. Can be anything.
Create a prefab variant of the project context, name it "ProjectContext" and place in assets/resources.
Test in Editor and build, works.
Now delete one of the mono installer scripts. Remove references to it on the base prefab and the variant if needed.
Test in Editor and build. Editor succeeds installation but built version hits "null installer".

Expected behavior
It should work the same on both Editor and build.

Extenject and Unity info (please complete the following information):

  • Zenject version: 9.2.0
  • Unity version: 2022.2.16
  • Project's scripting backend: IL2CPP
  • Runtime platform: iOS

Additional context
The only way I've found to fix this is to delete the variant and create a new variant from the original prefab.

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

No branches or pull requests

1 participant