- Home /
How to change 2D sprite border ?,How to change 2D spite border ?
I wrote newSprite = Sprite.Create(tex.texture, new Rect(0, 0, tex.texture.width, tex.texture.height), Vector2.zero, 10); newSprite.border.Set(2.0f, 2.0f, 2.0f, 2.0f); print(newSprite.border); transform.GetComponent<SpriteRenderer>().sprite = newSprite;
But the border don't change
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Finding the centre of two touches 2 Answers
Custom shader of sprite results in black alpha. 0 Answers
How do you check to see if an animation is playing in a Sub-State machine? 0 Answers
Incorrect usage of Vector3.Dot? 0 Answers
Multiple Sprite animations 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                