I have a sprite 1280*720 and I set the Pixels Per Unit to 1.
It show 1280*720 in the Scene.
I want to resize the sprite via input the value in Inspector.
For example, I input the Width:600 Height:400 in Inspector then it will show 600*400 in Scene.
I try to add code “GetComponent ().bounds.size.Set (600f, 400f, 0.2f);” in the Script.
it’s no use.
How can I implement it?