I’m trying to separate a child object created with a spawning system from the parent obect, but currently I am just using “transform.parent = null”. However, I’ve noticed the child itself seems to be vanishing when the parent is destroyed as well, and have ruled out clauses in the child’s code. This should not happen when conditions are met. According to documentation - and other questions close to this, null SEEMS to be the best way, but something is going wrong.
if (!follow) {
transform.parent = null;
follow = true;
}