how to change values in parent class unity code example Example: set parent of gameobject unity child.transform.SetParent(newParent);