not localscale unity code example
Example: unity how to get transform scale
// This returns the scale of the object the script is attached to.
transform.localScale
// This returns the scale of the object the script is attached to.
transform.localScale