|
I'm making a 2D game and a character needs to crouch. The material Sets to a picture of someone crouching, but the box stays the same size. How do I make it shrink to the size of the image file of the texture? If imposible, how else can i make a 2d character made from one shape crouch?
(comments are locked)
|
|
Take a look at transform You would need to adjust the value using the localscale property of the transform. i.e Doesn't appear to work :(
Jul 24 '11 at 09:04 AM
magicaxis
I had to do this, and it didnt work :( Vector3 temp = new Vector3(1.0f, 0.5f, 1.0f); transform.localScale.Scale(temp);
Jul 24 '11 at 09:05 AM
magicaxis
(comments are locked)
|
