GameObject Disappears when Setting Parent

I have a sprite game object. Whenever I set its parent to a programmatically sprite it will no longer render. When the game is paused, I can see the sprites transform controls in the scene but can not see the sprite itself. Oddly enough, if I assign it to a sprite that was not programmatically generated(exact same attributes though) the sprite shows up fine. All layers are being shown… now sure what is causing this.

Turns out if you set localeScale property on the parent game object all of the children will disappear. This was what I was doing:

gameObject.transform.localScale = defaultScale;