I think the missing piece is that you need to call RegisterComponent on the newly created component once you finish setting up its properties.
The AddComponent function you’re calling there is used by the AddComponent blueprint nodes, I don’t think it is really what you want to use in this case.