FObjectFinder; make a generic function

Gurulis99
Wed, 22 Jul 2020 14:06:26 +0000
UI

Greetings,

i want to make a generic function called FindAsset(FString name) which will return the object of the asset. Inside of it, i use the ConstructorHelper::FObjectFinder. Although everything is good, i cant put the name into the TEXT() area… What should i do? I have faced this problem again when naming an object with CreateDefaultSubobject. I can only write it down but not use a FString variable…

Thanks in advance,
A.F.

3 posts - 1 participant