SetMaterialInstanceTextureParameterValue always returns false.

bool UMaterialEditingLibrary::SetMaterialInstanceTextureParameterValue(UMaterialInstanceConstant* Instance, FName ParameterName, UTexture* Value, EMaterialParameterAssociation Association) { bool bResult = false; if (Instance) { Instance->SetTextureParameterValueEditorOnly(FMaterialParameterInfo(ParameterName, Association, Association == EMaterialParameterAssociation::LayerParameter ? 0 : INDEX_NONE), Value); } return bResult; }

Steps to Reproduce
The function UMaterialEditingLibrary::SetMaterialInstanceTextureParameterValue always returns false.

Just look at the code :slight_smile:

Hi [mention removed]​,

Thanks for reporting the issue. I had a look to it and UMaterialEditingLibrary::SetMaterialInstanceTextureParameterValue and yes, seems like the dev forgot to implement it. I also noticed that there are other setter functions for UMaterialInstanceConstant that also have this issue. I’ll let the full list of the functions this issue happens so other people in the forum are aware. I’ll report it to Epic so they change it for future versions as it looks like this is also not fixed in the latest dev branch.

List of the functions with the same issue:

`- SetMaterialInstanceScalarParameterValue

  • SetMaterialInstanceTextureParameterValue
  • SetMaterialInstanceRuntimeVirtualTextureParameterValue
  • SetMaterialInstanceSparseVolumeTextureParameterValue
  • SetMaterialInstanceVectorParameterValue
  • SetMaterialInstanceStaticSwitchParameterValue
  • SetMaterialInstanceEnumerationParameterValue`

I’ll update the thread once I get the public report for https://issues.unrealengine.com/.

Best Regards,

Joan

Hi [mention removed]​,

Public bug tracker: Unreal Engine Issues and Bug Tracker (UE\-291403)