Search Unity

Bug Version numbers exposed as uints, but not according to documentation

Discussion in 'Entity Component System' started by vildauget, Apr 3, 2021.

  1. vildauget

    vildauget

    Joined:
    Mar 10, 2014
    Posts:
    121
    Version numbers

    upload_2021-4-3_13-33-9.png

    This isn't correct. The version numbers are exposed as uint's, so for the check to work, the result of B-A must be cast to int.

    Code (CSharp):
    1. bool VersionBIsMoreRecent = math.asint(VersionB - VersionA) > 0;