Effect picture
Download CSG and import it into the project: https://download.csdn.net/download/weixin_44950382/86744963
- Create a new Plugins folder, cut the csg under the editor into the folder, and delete the original dll file
- Code
This code is linked to the main camera. The target is the object to be cut. The brush is a brush. This is what the cutout looks like.
using System.Collections;
using System.Collections.Generic