Description

In Unreal Engine, materials can expose parameters that can then be modified via instances (MaterialInstanceConstant). The UMaterialEditingLibrary provides several functions to modify these parameters at runtime or through editor scripts.

However, these setter functions (e.g., SetMaterialInstanceTextureParameterValue) currently always return false, even when the parameter update is successful. This may mislead users into thinking the operation failed.

A user initially reported this behavior for one function, but upon further inspection, this issue affects multiple setter functions across UMaterialEditingLibrary.

It would be helpful to review and correct the return logic for these functions to reflect whether the parameter update was successfully applied, and optionally provide more diagnostic output in case of failure.

This also do happen for the following functions:

  • SetMaterialInstanceScalarParameterValue
  • SetMaterialInstanceTextureParameterValue
  • SetMaterialInstanceRuntimeVirtualTextureParameterValue
  • SetMaterialInstanceSparseVolumeTextureParameterValue
  • SetMaterialInstanceVectorParameterValue
  • SetMaterialInstanceStaticSwitchParameterValue
  • SetMaterialInstanceEnumerationParameterValue
Steps to Reproduce

Call any from the following functions in C++ for a MaterialInstance from the UMaterialEditingLibrary class:

SetMaterialInstanceScalarParameterValue
SetMaterialInstanceTextureParameterValue
SetMaterialInstanceRuntimeVirtualTextureParameterValue
SetMaterialInstanceSparseVolumeTextureParameterValue
SetMaterialInstanceVectorParameterValue
SetMaterialInstanceStaticSwitchParameterValue
SetMaterialInstanceEnumerationParameterValue

Callstack

Just call UMaterialEditingLibrary::SetMaterialInstanceTextureParameterValue, iIt always fails. The bool return condition is not implemented in any of them.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-291403 in the post.

0
Login to Vote

Unresolved
ComponentUE - Rendering Architecture - Materials
Affects Versions5.05.15.25.35.45.55.6
Target Fix5.8
CreatedMay 30, 2025
UpdatedJun 16, 2025
View Jira Issue