Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Scaling sprite with BoxCollider2D attached

$
0
0
Hello.

I'm having an issue when trying to scale a sprite that has a BoxCollider2D attached.
I have tried both adding the collider directly to the sprite, and I have also tried creating a prefab and adding the collider to that instead.
The issue is that when I scale the sprite (Press 'r' in the scene view when it is selected and then scale up or down), it appears that the sprite scaled properly and the box collider also appears to scale with it.
However, when I press Play and the game...

Scaling sprite with BoxCollider2D attached

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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