This is a first draft for a function that allows to change the parent.
I will improve the tests and fix bugs if necessary.
The transform.SetParent changes only the positioning but not the actual parent, that happens only in the ApplyChildren.
My new RemoveParent also only changes the positioning. To avoid confusion I'm thinking about renaming this to RemoveParentTransformation or staying in the same naming scheme but making the function private.
This is a first draft for a function that allows to change the parent.
I will improve the tests and fix bugs if necessary.
The transform.SetParent changes only the positioning but not the actual parent, that happens only in the ApplyChildren.
My new RemoveParent also only changes the positioning. To avoid confusion I'm thinking about renaming this to RemoveParentTransformation or staying in the same naming scheme but making the function private.