docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Bitwise Operators

    Perform bitwise logical operations on inputs.

    Page Description
    And Operator Perform a bitwise AND operation, which outputs 1 if both bits are 1.
    Complement Operator Perform a bitwise NOT operation to invert each bit.
    Left Shift Operator Shift an input value left by a specified number of bits.
    Or Operator Perform a bitwise OR operation, which outputs 1 if either bit is 1.
    Right Shift Operator Shift an input value right by a specified number of bits.
    Xor Operator 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 © 2026 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)