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

Rendering crashes when creating decal #27

Open
ChristopherEmde opened this issue Jun 19, 2020 · 2 comments
Open

Rendering crashes when creating decal #27

ChristopherEmde opened this issue Jun 19, 2020 · 2 comments

Comments

@ChristopherEmde
Copy link

I've set up the package as instructed and there are no importing errors. everything seems to be set up as intended but when I create a decal object in the hirearchy rendering of the scene seems to crash and I get null reference exceptions.
error codes
I am using Unity 2019.4.1f1.

@JuniorDjjr
Copy link

JuniorDjjr commented Jun 21, 2020

Same here. But just add some valid decal and it will be fixed.

An ugly way to solve this is by adding a condition to run this line only if there is at least 1 valid decal:

// Sorting
 if (DecalSystem.decals.Count > 0 && DecalSystem.decals[0].decalData)
 {
    var decals = DecalSystem.decals.OrderBy(x => x.decalData.sortingOrder);
    ...

@TheReAnimator
Copy link

Hm I have the same issue, but adding decal data to the decal leads to Unity crashing every time. Using version 2020.1.2f1

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

3 participants