Hi everyone,
I’m trying to access a parameter collection to change Material values at runtime.
PPParameterCollectionInst = GetWorld()->GetParameterCollectionInstance(PPParameterCollection);
if(PPParameterCollectionInst != NULL)
PPParameterCollectionInst->SetScalarParameterValue(HU4PC_PPParameters::EMP_Percent, 0.0f);
It compiles just fine but here’s what I get when linking :
error LNK2019: unresolved external symbol "public: bool __cdecl UMaterialParameterCollectionInstance::SetScalarParameterValue(class FName,float)" (?SetScalarParameterValue@UMaterialParameterCollectionInstance@@QEAA_NVFName@@M@Z) referenced in function "private: void __cdecl AHU4PlayerController::SetupForFlight(void)" (?SetupForFlight@AHU4PlayerController@@AEAAXXZ)
I don’t get it… Something missing in the build.cs ?
thanks