using UnityEngine; public class ScaleCon : MonoBehaviour { // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { size = transform.localScale; realParent = transform.parent; } public Vector3 size; public Transform realParent; // Update is called once per frame void Update() { if(transform.parent== realParent) transform.localScale = size; } }