Quantcast
Channel: Answers for "Unity 5 (2D) - Sprite disappears when flipping via localScale"
Browsing latest articles
Browse All 19 View Live

Answer by MadManAdam

Maybe try transform.rotate: if (_currentDirection !isFacingRight) { if (isFacingRight == true) { transform.Rotate (0, 180, 0); _currentDirection = "right"; // or whatever variable you're using } else...

View Article


Answer by John_Chantzis

My guess would be a problem with negative scale (or zero in other cases). I recommend using a **rotation** of 180° on the proper axis, probably the Y-Axis, but it depends on your project setup....

View Article


Answer by dpgraves

This has got to be a bug in Unity 5. This is a really bad bug too and will need to be fixed otherwise I can't use Unity 5 for my 2D game.

View Article

Answer by MalzanFaren

Hi, Suggestion: Remove "center.x = -center.x;" I only messed about with this for a bit so I'm not 100% sure if this is going to work or not. I think the problem may be the last line "center.x =...

View Article

Answer by BobbyDoogle

Was having the same issue and resolved it. There is now (perhaps with 5 or an update) a standard asset shader called Sprites/Diffuse, apply a material with this shader configured and you can then scale...

View Article


Answer by TheMonkeysaur

I am having this problem with Unity 2017.1.1f1 negative scale or 180 rotation both result in the sprite not being affected by light. Using the Sprites/Diffuse shader. Has anyone else had/solved this...

View Article

Answer by patr0018

If it helps anyone, check the player's position in 3D-view to see where the player is relative to the camera position. The player might have rotated out of view, so change the z position of the pivot...

View Article
Browsing latest articles
Browse All 19 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>