docs.unity3d.com
    Show / Hide Table of Contents

    Boolean operations

    Warning: The Boolean feature is experimental, meaning that it is still under development, and might reduce ProBuilder's stability. Please use with caution.

    The experimental Boolean features provides an interface for creating new Meshes from boolean operations.

    Boolean (Experimental) window

    Each type of operation takes two ProBuilder Mesh objects as the left and right inputs. ProBuilder combines the two input Meshes to create a new Mesh shape based on the operation you select.

    You can only access this feature from the menu, because it is experimental:

    1. To open the Boolean (Experimental) window, navigate to Unity's top menu and go to Tools > ProBuilder > Experimental > Boolean (CSG) Tool.
    2. Set references to the ProBuilder Meshes just under the preview windows on the left and the right side.
    3. Select one of the boolean operation types from the Operation drop-down menu: Intersection, Union, or Subtraction.
    4. Click the Apply button. ProBuilder performs the selected operation.

    Intersection

    The new Mesh matches the shape where the two original Meshes intersected in space.

    Boolean Intersection of a Cube and a Cylinder

    Union

    The new Mesh matches both of the original Meshes but as a single Mesh.

    Boolean Union of a Cube and a Cylinder

    Subtraction

    The new Mesh is like a union of the two original Meshes, minus the shape where the two shapes occupy the same space.

    Boolean Subtraction of a Cube and a Cylinder

    In This Article
    • Intersection
    • Union
    • Subtraction
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023