Search Unity

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

Minor Typo in CollisionFlags

Discussion in 'Documentation' started by joshuaflash, Jun 20, 2017.

  1. joshuaflash


    Oct 27, 2015
    Found a minor typo that confused me for a brief moment on CollisionFlags. Hopefully this is the place to report it.

    The example code has a line that shows:

    if ((controller.collisionFlags & CollisionFlags.Above) != 0)
    print("Touching sides!");

    But really the print message should be

    print("Touching ceiling!");

    as that is consistent with the other examples on the page.

    Not a big deal, but was enough to confuse me for a moment while reading through this page for the first time.