docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Bitwise Operators

    Perform bitwise logical operations on inputs.

    Page Description
    And Perform a bitwise AND operation, which outputs 1 if both bits are 1.
    Complement Perform a bitwise NOT operation to invert each bit.
    Left Shift Shift an input value left by a specified number of bits.
    Or Perform a bitwise OR operation, which outputs 1 if either bit is 1.
    Right Shift Shift an input value right by a specified number of bits.
    Xor Perform a bitwise XOR operation, which outputs 1 if only one bit is 1.

    Additional resources

    • Logic Operators
    • Math Operators
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)