Search Issue Tracker

Fixed

Votes

0

Found in [Package]

1.5.2

1.6.0

Issue ID

UVSB-1405

Regression

No

Comparing Not Equal on 2 exact int values return the wrong result.

Package: Visual Scripting

-

*Reproducible on:*
* Visual Scripting version: 1.6, 1.5.2
* Unity version: 2021.1.0f1

*Steps to Reproduce:*
# Create a new game object
# Add to it a script machine with a script graph attached to it
# Create a simple graph using the *Add Input* and *Not Equal* node like the graph below
!NotEqual.JPG|thumbnail!
# Click to play

*Outcome results:*
* It seems that the *Add Input* node outputs a float, so when the user compares if Not Equal even if it's comparing exacts numbers will return true.

*Expected Results:*
* Add Input node should return the same type of the inputs being added, so when the user compares exact inputs the *Not Equal* node will return the proper results.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.