The Print is for checking if I add it successful. Actually, it works. But if I move the actor, the component disappears. After adding the component, the component does not appear in the component window where we can see other components. But the component works, I use print to test it. Again, I moved the actor, then the component disappears.
I guess it is that function, UE separates the words by a capital letter itself. So this function probably invokes itself multiple times but somehow there’s no infinite loop error. IDK.