Sprite Factory

ReadMe
Release Notes
Overview
Using the Editor
Upgrading

Concepts
Sprites
Master Sprites
Sprite Groups
Colliders
Locators
Material Sets
SpriteUpdater
SpriteCamera

Advanced
Working in Multiple Projects

Classes
Runtime Classes

Videos
Overview
Creating Sprites
Sprite Inspector
Frame Events
Collision System
Locator System
Material Sets

Links
Sprite Factory Site
Web Documentation
Support
Contact

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