HDRP/Lit Material Crossfade (LOD_FADE_CROSSFADE) makes object invisible

Objects in my Project go invisible randomly. Here is what I found in a new sample Project using 2023.2.18f1

Crossfading works on a default HDRP/Lit material:

This is the LOD Group with Crossfade Setup:

Per default, there is no crossfade keyword, while it still works?

But in my other Project, Unity adds the keyword (not sure when) on it’s own. Then, my Object is invisible…

So I tried adding the keyword here manually:

and it reproduced the problem, the object is invisible, as long as it’s not actively crossfading?

9836277--1415049--LOD_FADE_CROSSFADE2.gif

Sooo… what do I do? Unity adds the LOD_FADE_CROSSFADE keyword on it’s own in my other project, how can I avoid that? Or … make it work without being invisible?
When I create a Shadergraph and set “enable LOD Crossfade” it also goes invisible :frowning:

Update: I found a script I added months ago, that sets the Keyword on the material…

rendererForCrossfade.sharedMaterials[i].EnableKeyword("LOD_FADE_CROSSFADE");

It was hard to notice, because it was only on one object, but of course affects all objects using that material…

I think I did that because I couldn’t get Crossfading to work in 2021.3 otherwise… Removing the script now solves the problem of the “magically” added Keyword. And if I leave it like that, crossfading works normally. Ooops I guess :roll_eyes: