2D Toolkit Forum
2D Toolkit => Support => Topic started by: pete on March 02, 2015, 10:26:21 am
-
Hi there,
Just wondering if it's possible to bake the scale of a text element through the editor?
I have a script that is going through and cleaning things up for me and it would be really handy to have it bake the scale of any 2d toolkit components in my scene.
Thanks
Pete
-
Yes, you just need to call tk2dScaleUtility.Bake on the objects that you want baked.
-
Awesome, Thanks!
-
Ahhh sorry, looks like I spoke too soon. Just wondering, how do you actually use tk2dScaleUtility.Bake? I can't seem to find it in the docs...
Thanks
Pete
-
Its not in the docs, its an internal editor class :)
You basically call it with the transform you want to bake scale as the parameter.