Unreal Engine version: 4.8.3.
I have tested on empty project and do the following steps:
- Create empty blueprint projects
- Add structure called “data”, where the data contains three variables, value, min, max.
The types of the three variables are all float. - Add new blueprint class “manager”
- Add local variable myData with type data.
- Construct the function as the figure shows
- Close the project and reopen.
- Open the class manager.
- 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.