I would like to find this skeletal mesh in the scene through FindObject
I copied the reference and used it in the function. However, it always returns nullptr because the SkeletalMeshActor is not entered.
Is this FindObject function safe?
I know there are alternatives but they can help me understand the reasons
return nullptr?
I have tried everything but the FindObject and LoadObject functions always return nullptr to MyActor
What´s is Wrong?
Would you also like to know what the Outer parameter is?
Thank you
ASkeletalMeshActor* MyActor = LoadObject<ASkeletalMeshActor>(nullptr, TEXT("SkeletalMesh'/Game/FBX/SK_Mannequin.SK_Mannequin_C'"));
ASkeletalMeshActor* MyActor = FindObject<ASkeletalMeshActor>(nullptr, TEXT("SkeletalMesh'/Game/FBX/SK_Mannequin.SK_Mannequin_C'"));
template<class T>
T * FindObject
(
UObject * Outer,
const TCHAR * Name,
bool ExactClass
)