Why use FClassFinder?

I really don get it why I would use FClassFinder if I can just include class declaration in my cpp?

Hello, BKremnev

Please note that FClassFinder can be used to get the class of the Blueprint you want to instantinate.

For example, if you have the following in header file:

UPROPERTY()
UClass* CustomBPClass;

You can use FClassFinder in your constructor like this (.cpp file):

 static ConstructorHelpers::FObjectFinder<UClass> CustomBPClass(TEXT("Class'/Game/Blueprints/CustomBP.CustomBP_C'"));
      if (CustomBPClass.Object != NULL)
      {
          BPClass = CustomBPClass.Object; 
      }

Hope this helped!

Cheers!