I couldn’t find a better title.
I have a script which makes object1 child of object2:
if(sth){
object2.transform.parent = object1.transform;
}
and it works well.
But I have no idea how to make object1 “not child” again?
It must be pretty easy I know, but I’m new to this.
Do I use sth like “!=” ?