It’s far from the best solution, but I just leave it here.
-
Create “MyNewClass” class in file that contain “MyClass” :
UCLASS()
class PROJECT_API AMyNewClass : public AActor
{
GENERATED_BODY()
}; -
Build solution.
-
Go to UE editor and reparent your blueprint to your new empty class with new name
-
Go back to code, remove empty class you’ve just created, rename your target class.
-
Build solution.
It helps me for small Actor based class