Class isn't in content browser

In the Udemy class I created Actor Component “Grabber”. It said it worked, but it doesn’t appear in the content browser. I tried compiling the project from XCode and it said it succeeded. But when I reopen Unreal, I still don’t see the new Component?

If you want to see C++ classes in the content browser then you need to select ‘View Options’ in the lower right of the content panel and then enable ‘Show C++ Classes’. Then within the content folder view on the left you need to scroll down to the bottom (or collapse the ‘Content’ folder) and expand C++ Classes.

However, you can’t just drag and drop these into the scene. If you’ve created as new component then the easiest thing to do is to just select the actor you want to add the component too, click ‘Add Component’ and select the component you’ve just created from there. If you can’t see it, make sure you’ve inherited from UActorComponent properly and that your UCLASS properties are setup correctly.

try to refresh the solution and then restart the editor (sometimes refresh might suffice)

I have “Show C++ Classes” checked. I can see OpenDoor and PositionReport, the two earlier classes from the tutorial. It’s just Grabber that does not show up, and it is clearly in the folder structure right alongside the others.

Have you tried regenerating the XCode project files (right click on your UProject file and select from the menu) and then recompiling from XCode again.

If that doesn’t help then check your UCLASS settings are the same got Grabber as they are for OpenDoor.

Does grabber inherit from a unreal class? From everything I have and done you can create classes that don’t show up becuase unreal knows that it can’t do much with it anyways so it ignores them.

An example in my current project is a Time class for displaying time in minutes and seconds format. That class is purely c++ so it doesn’t show up in unreal.