Quantcast
Channel: Questions in topic: "unity2d"
Viewing all articles
Browse latest Browse all 60

Linerenderer disappears or doesn't change after mirroring x axis

$
0
0
Hello! I'm working on a 2d project. I have a linerenderer not using world coordinates with only two positions: (0,0,0) and (10,0,0). The linerenderer is attached to the object gun that is found in this hierarchy -> GameObject1/GameObject2/Gun. Both GameObject1 and GameObject2 have spriterenderers attached. When i change the X scale of GameObject1 with its opposite (in this case localscale.x becomes -1 from 1) all the sprites flip but the linerender DISAPPEARS! I have tried to change the scale of "Gun" aswell but the only result has been to make the linerenderer stand still. How can I make the linerender flip normally on the local x-axis?

Viewing all articles
Browse latest Browse all 60

Trending Articles



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