2D Unity 5.3.2f1: Problems with lighting & multiplying transform.localScale
Hello!
So I've been trying to place a point light to illuminate my 2D character and I've run into trouble. Initially, when my character is facing/moving left the lighting works just fine. When I start moving right and the sprite flips (through multiplying transform.local) the lighting immediately goes, leaving the sprite in the dark. Moreover, once I I change direction again (flip back) the sprite is still in the dark.
Here is a snippet of the code:
I suspect there might be a problem with the transform.localScale not recognizing the assigned material type (which is sprite>diffuse) though I am unsure. I've looked into this problem and others seem to have had it & haven't discovered a solution.
Any and all help with this problem will be much appreciated!!
Your answer

Follow this Question
Related Questions
localScale affecting transform.translate in Unity 5.4.0? 2 Answers
Intersecting sprites causes bug if using lights (2D) 1 Answer
How to fix strange 2D colliders behavior? 0 Answers
How do you use different shaders with Unity 2019 2D lighting? 0 Answers
hi in the scen wive lighting changes not visible and light properety shows me it how fix it ? 0 Answers