This was working before upgrading to Unity 4.5. After a collision (ontriggerenter2d), the object hit got smaller. Now, collision is still detected (per debug.log), but it’s not rescaling. Are there changes needed to my script for Unity 4.5? I tried instead destroy, and this works, so it’s not the collision Is there some setting that locks or enables localScale changes? a new way for Unity4.5???
Anyone???
Vector3 theScale = other.gameObject.transform.localScale; // tried changing to Vector2
theScale.x *= shrinkPerHit;
theScale.y *= shrinkPerHit;
other.gameObject.transform.localScale = theScale;