Hi guys, I know that threads similar to this have already been posted, but my problem is a bit different than theirs. I have a simple standard material with emission settings set. I made a script that enables emission on Start(), but absolutely NOTHING changes on startup. I even tried doing it from the object it was applied to and it didn’t work. My game does not use GI in any way. EnableKeyword(“_EMISSION”) doesn’t seem to work at ALL. Any help?
- What are you expecting emission to do if you’re not baking lighting? It’s not going to light up surrounding objects. Or is it that it’s not showing up in Bloom postprocessing either?
I just want to turn on emission so that the hot elements on my stove model stay illuminated in the dark. I don’t need any Bloom, and I don’t need it to light up other objects. It works fine when I enable it manually, but not when I use EnableKeyword(“_EMISSION”).
Actually, I solved it. It turns out I just wasn’t implementing it into my interaction script properly.
Well, It’s not working again. It does enable emission on my elements in play mode, but not in the build. I already checked my code in the player log, and it looks like it should work. What am I doing wrong this time
?
You’re likely missing the shader variant for it to work.