Using math extension always prints warning message

Unreal Engine version: 4.8.3.

I have tested on empty project and do the following steps:

  1. Create empty blueprint projects
  2. Add structure called “data”, where the data contains three variables, value, min, max.
    The types of the three variables are all float.
  3. Add new blueprint class “manager”
  4. Add local variable myData with type data.
  5. Construct the function as the figure shows

  1. Close the project and reopen.
  2. Open the class manager.
  3. In output Log will always show the warning message:

LogBlueprint:Warning: Could not find local variable ‘value’!

LogBlueprint:Warning: Could not find local variable ‘min’!

LogBlueprint:Warning: Could not find local variable ‘max’!

LogBlueprint:Warning: Could not find local variable ‘min’!

If I add the three local variables (value, min, max) in the function will get the similar result like

However, the blueprint seems works well without adding the local variable.

My question is : Is the code really dangerous?

If the warning can not be eliminated easily, I would rather not using math expression.

Hi windkey,

Does this occur in a clean, blank project with no additional content or is it limited to one project? Have you tried this in the latest release (4.9)? There have been a few updates to the math node in the latest release.

Hi windkey,

I’m happy to hear that this has been addressed as of 4.9. I’m going to mark this as answered for tracking purposes. If you experience this error again in 4.9, please comment back here and I’ll be happy to take another look.

In 4.8.3, I tested in a new blueprint project which is derived from example project: “first person”.

I am testing 4.9 now…
OK, the warnings are clear in 4.9…

Thank you.