• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Jul 27, 2022 Jul 27, 2022

Copy link to clipboard

Copied

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`.

Bug Unresolved
TOPICS
Bugs & Crashes , Discussion , UE4

Views

206

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation
Download Latest Versions