SpriteFactory.Sprite.SetUseBatchScaling
C#: void SetUseBatchScaling (bool state, [bool convertTransformScale = true])
JS: function SetUseBatchScaling (state : bool, convertTransformScale : bool) : void
Description
Enable/disable batch scaling. Use this function instead of setting the useBatchScaling variable directly during gameplay.
If convertTransformScale = true, the value of Transform.localScale will be converted to batch scaling by modifying the mesh's vertices and Transform.localScale will be reset to 1, 1, 1. Note that this only happens when state = true as well. When disabling batch scaling, no conversion will be done.
See Also
useBatchScaling
batchScale