Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

0 not equal to 0

Discussion in 'Visual Scripting' started by deathkill781, Jun 3, 2021.

  1. deathkill781


    Jun 3, 2021
    Hello people. I recently purchased a course by code monkey, and it's been extremely helpful, but during one of the lectures, I used all the correct code and logic, but for some reason something weird happened. When comparing a variable with a float of value 0 using a not equal unit, even though both the variable and float are inputting a 0 value, the not equal unit outputs a true value, despite the values being equal. Is this a glitch, or could it be something wrong with my code, because I checked it and compared it with that of the instructor, and yet it still does this problem.

    Note: none of the values that are being set for the variable are decimals, so it's unlikely that the value is not equal to 0, but so miniscule that bolt is identifying it as such. wtf.PNG
  2. theor-unity


    Unity Technologies

    Feb 26, 2016
    known issue, the fix will be in the next version. meanwhile, checking the "numeric" checkbox in the "not equal" node properties should fix it. thank you for the report !