2D Toolkit Forum

2D Toolkit => Support => Topic started by: Tiago2R on October 17, 2012, 12:11:41 am

Title: Change dimensions of a Sliced Sprite
Post by: Tiago2R on October 17, 2012, 12:11:41 am
I'm trying to change dimensions of a sliced sprite, but this is not working.

Code: [Select]
gameObject.GetComponentInChildren<tk2dSlicedSprite>().dimensions.Set(400, 400);
Title: Re: Change dimensions of a Sliced Sprite
Post by: unikronsoftware on October 17, 2012, 06:51:48 pm
Code: [Select]
gameObject.GetComponentInChildren<tk2dSlicedSprite>().dimensions = new Vector2(400, 400);.dimensions is a property, not a variable.