Using a plugin in C++ code

“the editor can’t see it” - what exactly do you mean by that?

Where in the Editor are you trying to use the new class? If it’s in a blueprint, did you mark the class as BlueprintSpawnable?

meta=(BlueprintSpawnableComponent)