Question by
670ok · Sep 04, 2017 at 07:30 AM ·
unity 5spritespriterenderer
Is there a way to modify sprite's vertices
There are many prefabs in my project. Each contains a SpriteRenderer component. They all use a sprite named "spriteA". Now I want to replace "spriteA" with "spriteB" . The problem is that "spriteA" and "spriteB" has different sizes(256*256 128*128). Which means I have to modify every prefab(set localscale to half). I don't think it is a good solution. Is there any better way? I know i can do something in AssetPostprocessor.OnPostprocessSprites.But it seems unable to scale sprite's vertices.
Comment