I added the UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent)) macro, so it shows up in the details panel when I open the Blueprint, but when I place it in the level, it disappears.
I added the CDO in the constructor like the code below
I think the problem was my misuse of the Transient keyword. Somewhere along the line, I think I deleted the specifier and it just broke the code or something.
I’m not sure if I understood the Transient UPROPERTY properly, but I thought that the variables would not be serialized. But from the behavior, it seems like the “don’t serialize” property was serialized.