Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hello! How setup it?

Hi! Create an empty object, name it "FlashlightController", add the script component to it from this archive. Then add a spotlight object as a child to the FlashlightController object. Assign references in the script component if needed. Then place the FlashlightController object in the same position as your character's camera is (do not make it as a child of the camera or character, let it be by itself). Then in PlayMode, check if the Spotlight from the FlashlighController object is pointing to the right direction, if not - adjust its rotation while in PlayMode and when left from the PlayMode - assign the previous values to the Spotlight's local rotation. You can also tweak the position offset, if you like.

Thank you so much, really appreciate it.

I hope this helps! Let me know if you get into further trouble setting it up!