How to use UCLASS as variable (currently always undefined)

I want to use UCLASS as a variable type (to pass into UWorld::SpawnActor’s UCLASS* parameter), but anytime I try to create a variable of that type, it is “undefined” and I can’t seem to find information about it online elsewhere. Do I need to include a particular module or something?

Apologies in advance if this is just the way you typed it here, but if you have it in all upper case, that would be undefined, it is UClass* that is the parameter to SpawnActor.

Wow, I’m an idiot. Well then, thank you very much.