Ideas for Lights Out Style game

I am trying to add the functionality like in the movie Lights Out. When the one girl turns on the light in the room, the demon/object/shadow thing disappears. That’s fine and easy, I just deactivate the gameObject when the light turns on. The functionality I am trying to get to work is for when I shine a flashlight on the demon, how can I make that portion that the light is shining on it to disappear? I’m not necessarily looking for a script that will do it, but instead pushed in the right direction so I can try and build it. Might be a stretch since this functionality seems hard to do, but I mean I thought I would ask here since I can’t find something like it on google. Thanks!

I attached some pictures of a scene in the movie that it does what I am looking for, any help is greatly appreciated!

You’ll need a custom shader that takes spotlight position/direction in, and then erases the part of the demon. Because there’s only one flashlight, it shouldn’t be difficult.

2 Likes