Component Move Constructor

Ok. So I understand why components can’t be copied (because it would mess up the parent hierarchies and listeners, etc.).

But I don’t understand why Components can’t be moved instead. Wouldn’t these parents and listeners just be moved with the component. No duplicates would be made. Can anyone tell me why this is?

What would happen to all the pointers pointing to the moved component?

1 Like