What is the right syntax of FClassFinder and how could I generaly use it to find a specific blueprint?
What is the right syntax of FClassFinder and how could I generally use it to find a specific blueprint? I have read a ton of information and couldn't find explanation of syntax or any useful reference. Preferably I would like to know how to find all child classes of an abstract C++ class( which themselves would be Blueprints ). Example of usage I found ( And my guesses )
Thank you in advance.
P.S. Would be glad if someone would point me at a good source about UClass and general class management of classes in Unreal.
asked Jul 13 '16 at 01:38 PM in C++ Programming
An example of FClass finder can be found when you want to assign a Game Modes default classes types, such as:
To break it down further:
FClassFinder is going to give you a class back. The type of the class follows FClassFinder, such as:
static ConstructorHelpers::FClassFinder or static ConstructorHelpers::FClassFinder.
Then you need to declare a variable for the return, such as:
static ConstructorHelpers::FClassFinder PawnClassAsset
After that, you need to give the path to the asset, in the Content folder, such as:
static ConstructorHelpers::FClassFinder PawnClassAsset(TEXT("/Game/FirstPersonCPP/Blueprints/FirstPersonCharacter"));
Follow this question
Once you sign in you will be able to subscribe for any updates here