Skip to main content
Participant
Jul 27, 2022 7:52 AM UTC
Open for Voting

UE5 plugin bugs that cannot get min value of the float input properly

Related to How to get the range of the input - Adobe Support Community - 13090870,

I found a blueprint nodes called 'Get Float Input Desc' and 'Break SubstanceFloatInputDesc', which make me able to obtain Min and Max of the inputs, but I realized that I can only got the Max value from both Min and Max nodes.

I checked the source code of the plugin and found the codes in `SubstanceGraphInstance.cpp` as below.

 

 

 

case Substance_IOType_Float:
				K2_InputDesc.Min.Add(((InputDescFloat*)InputDesc)->mMaxValue);
				K2_InputDesc.Max.Add(((InputDescFloat*)InputDesc)->mMaxValue);
				K2_InputDesc.Default.Add(((InputDescFloat*)InputDesc)->mDefaultValue);
				break;
			case Substance_IOType_Float2:
				K2_InputDesc.Min.Add(((InputDescFloat2*)InputDesc)->mMaxValue.x);
...

 

I think this is the mistake that we should add `mMinValue` into `K2_InputDesc.Min`.