Unity-Technologies / Gamekit3D

194 stars 57 forks source link

NullRefException on MirrorReflection - Water in level 1 pink #6

Closed Jacekpapapolski closed 5 years ago

Jacekpapapolski commented 5 years ago

Open up the Level1 Scene

You'll have two errors and the water will be entirely pink

2a8ef0fcad56e7189efaeab6aab66397

UnityGuillaume commented 5 years ago

Should be fixed by the attached commit (it's on a 19.1-update branch)

For some reason, the water material had been deleted by the latest commit, so I just re-added it. Should be ok now (performance in scene view is terrible, the water do a lot of texture fetch, but something change between 18.3 & 19.1 cause I didn't remember it being so bad, need to have a proper look when we will have time).

Jacekpapapolski commented 5 years ago

54dd94a76f9326a6669fcd64d8e58bf8

Water no longer pink but errors still in console

UnityGuillaume commented 5 years ago

@Jacekpapapolski That's strange, the error is because the material on the water plane is null...which it's clearly not since it render it properly.

can you check on the water object, in the mesh renderer, if there is a null or missing materials in the materials list?

If not that seems like a left over error, shouldn't happen with a clean pull.

Jacekpapapolski commented 5 years ago

Re-importing fixed the issue once again... Unity is having a bad time on my machine... Closing