Following some examples I’ve seen on these forums/answerhub.
Trying to get a reference to a material from the content browser via:
static ConstructorHelpers::FObjectFinder<UMaterial> Material_Red(TEXT("MaterialInstanceConstant'/Game/Materials/Red.Red'"));
(This code is being called from a method on my ACharacter subclass
But for some reason this is triggering a break point in ConstructorHelpers.h at this point:
struct FObjectFinder
{
T* Object;
FObjectFinder(const TCHAR* ObjectToFind)
{
CheckIfIsInConstructor(ObjectToFind);
>> FString PathName(ObjectToFind); // Breakpoint here
StripObjectClass(PathName,true);
Object = ConstructorHelpersInternal::FindOrLoadObject<T>(PathName);
ValidateObject( Object, PathName, ObjectToFind );
}
bool Succeeded()
{
return !!Object;
}
};
Any clue as to what is the problem?