Description

Reproduced 3/3 times, issue also occurs in //UE5/Release-5.0 - CL 20979098 Binary. Confirmed NOT a Regression.

Steps to Reproduce
  1. Enable Plugin "Blueprint Material and Texture Nodes"
  2. Create the following assets:
    1. Material
    2. Material Layer
    3. Material Layer Blend
  3. Open the Material, and in details enable "Use Material Attributes"
  4. Add the following Parameters to these assets, set them to the same values:
    1. Static Switch (set default to true)
    2. Scalar (set to any non-zero value)
    3. Vector(set to any color)
    4. Texture (leave as Default Texture)
  5. Create a Material Instance from your Material. Assign your Layer & Layer Blend assets. Note that the correct Parameter Values are shown in the dropdown for these assets.
  6. Create a new Editor Utilities>Asset Action Utility function
    1. Get Selected assets, and For Each Cast to MaterialInstanceConstant
    2. Get Material Instance [params from step 4] Parameter Values
    3. Set Parameter Names to Param (the default name for new Parameters)
    4. Set Associations to Blend Parameter
    5. Convert each Return Value to String
    6. Print all strings to log
    7. Compile
  7. Right Click on your Material Instance and select Scripted Asset Actions>[your function name]

Actual Result: The following values are always returned:

  • Static Switch: false
  • Scalar: 0
  • Vector: 0,0,0,1
  • Texture: [blank]

Expected Result: The values should be the same as those seen in step 5. Compare by setting Association to Global or Layer.

Have Comments or More Details?

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

0
Login to Vote

Unresolved
ComponentUE - Rendering Architecture - Materials
Affects Versions5.1
Target Fix5.7
CreatedDec 2, 2022
UpdatedSep 4, 2024
View Jira Issue