Answers for "how to change spriterenderer size from c# script"

C#
1

how to change spriterenderer size from c# script

void Start() {   
   spriteRenderer = GetComponent<SpriteRenderer>();     
   spriteRenderer.drawMode = SpriteDrawMode.Tiled;  
   spriteRenderer.size = new Vector2(5,1);
 }
Posted by: Guest on December-21-2020
1

how to change spriterenderer size from c# script

sprRend.size = new Vector2(3, 1);
Posted by: Guest on December-21-2020

Code answers related to "how to change spriterenderer size from c# script"

C# Answers by Framework

Browse Popular Code Answers by Language