How to get a component in c++ that was added in blueprints

You should mark this as answered. That way it comes up as resolved when people are searching with the same issue.