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.Locator.ScaleChild

C#: void ScaleChild (Transform child, Vector3 scale)
JS: function ScaleChild (child : Transform, scale : Vector3) : void

Description
Scale a child of this locator.

This function takes batch scaling of the parent into account. If you're using batch scaling on the parent sprite, always scale children by calling this function instead of setting the transform's scale directly.


C#: void ScaleChild (Transform child, Vector3 scale, Vector3 position)
JS: function ScaleChild (child : Transform, scale : Vector3, position : Vector3) : void

Description
Scale a child of this locator and set the local position.

This function takes batch scaling of the parent into account. If you're using batch scaling on the parent sprite, always scale children by calling this function instead of setting the transform's scale directly.