Parent Object is null

Delete this tread. A simple test and everything worked. but in my game can’t see the parent, it is null in the hierarchy. 3 hours hackin at this, maybe some sleep will help.

The way you have it should work… And the parent shouldn’t be null… Let me see if I can’t replicate the problem.

Yea Im having some strange issues there too. Let me see if I can’t now come up with a solution

[A few Minutes Later]
Wow this is really weird give me some time cause ima have to get creative on this one. But this seems to be a unity bug not a problem with your code

Okay this is quick and dirty but it works for me.

void Start(){
    var all = Object.FindObjectsOfType<Transform> ();
        foreach (var i in all) {
            if (i == transform) {
                Debug.Log (i.parent);
                break;
            }
        }
    }

It seems to be an issue with GameObject / Transform variable assignment in the inspector but if you get the transforms via the start method (or whatever method) then it seems to get me past the problem just fine… Ill see about reporting this bug so that it’s not a problem in the future. Thanks for bringing this to our attention