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

The player builds stop working for Unity 2022.2.2 #6

Closed
laicasaane opened this issue Jan 19, 2023 · 3 comments
Closed

The player builds stop working for Unity 2022.2.2 #6

laicasaane opened this issue Jan 19, 2023 · 3 comments

Comments

@laicasaane
Copy link

After upgrading the project to Unity 2022.2.2, Windows and Android builds stop showing sprites. I've reported this problem to Unity though I still post the issue here in case you know the cause before them (usually it takes Unity nearly a month to answer my feedbacks). My main suspect is Burst 1.8.2 (previously 1.7.4 for Unity 2022.2.1).

@laicasaane laicasaane changed the title The project stops working for Unity 2022.2.2 The player builds stop working for Unity 2022.2.2 Jan 19, 2023
@Antoshidza
Copy link
Owner

Antoshidza commented Jan 19, 2023

Problem is inside RegistrateRenderersSystem particularly in place where code touches PropertiesSet which is null on every entity in every build run.
More important thing is that PropertiesSet contained inside SpriteRenderDataToRegistrate which used to registrate unique renderers for rendering system. This class not only includes properties set but also Material which isn't null but loaded.
From first view it looks like something broken with baking or loading subscene data process particularly on ScriptableObjects.

@Antoshidza
Copy link
Owner

Antoshidza commented Jan 20, 2023

I'm so tired to build project and dancing around it in hope to extract a piece of information. But this is what I've realised:

  • problem was in getting SO in managed component in build
  • it happens only with SO, other instances loaded well
  • it happens only with last SO in class layout, so after adding any else SO the first one loaded well and build starts render sprites because registration goes well. UPD: extra SO should be serialized + at least one entity have not null SO

Antoshidza added a commit that referenced this issue Jan 20, 2023
Due to this issue #6 and this thread https://forum.unity.com/threads/nullref-scriptableobject-inside-baked-managed-component-in-build-in-2022-2-2-unity.1389036/ extra ScriptableObject was added to temporarily fix issue in build until any official comments arrives.
Antoshidza added a commit that referenced this issue Jan 24, 2023
* Remove workaround from SpriteRenderData.cs to fix wrong serialization in build

Commit completely fixes issue #6
@Antoshidza Antoshidza reopened this Jan 31, 2023
@Antoshidza
Copy link
Owner

Issue seems still present depending on replay in forum thread

@Antoshidza Antoshidza reopened this Jan 31, 2023
Antoshidza added a commit that referenced this issue Feb 2, 2023
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

2 participants