- Home /
Question by
$$anonymous$$ · Jun 13, 2013 at 08:40 AM ·
transformparentchilddetach
Detach a child that has children
'go' is a gameobject that has a child and parent. I want to detach its parent but keep the relationship with the child in it. I've tried go.transform.parent = null; It seems to detach the parent and the child either. How can I do this?
Comment
Answer by $$anonymous$$ · Jun 13, 2013 at 09:27 AM
Problem solved!
Don't just write "problem solved". That's not an answer to your question. This site is a knowledge base and should help others as well.
Well, I solved by using .transform.parent.parent = null; I just thought few people would find this page.