How to make a flashlight using PointLight2D with a texture.

Godot Version

4.2.2

Question

We are making a game with a flashlight and using the node PointLight2D with a light texture. We want the light to point towards the mouse cursor. We’re trying to do this by rotating the point light, but the texture doesn’t rotate with the cursor. How can we rotate the texture or is there a better way to go about this?

you sure rotating the pointlight2d doesnt rotate the texture? because i tested it and it surely does rotate as expected