Method DetachFaces
DetachFaces(ProBuilderMesh, IEnumerable<Face>)
Splits any shared vertices so that this face may be moved independently of the GameObject.
This is the equivalent of the Detach Faces action.
Declaration
public static List<Face> DetachFaces(this ProBuilderMesh mesh, IEnumerable<Face> faces)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IEnumerable<Face> | faces | The faces to split from the mesh. |
Returns
Type | Description |
---|---|
List<Face> | The faces created forming the detached face group. |
DetachFaces(ProBuilderMesh, IEnumerable<Face>, bool)
Splits any shared vertices so that this face may be moved independently of the GameObject and optionally deletes the faces on the source geometry.
This is the equivalent of the Detach Faces action.
Declaration
public static List<Face> DetachFaces(this ProBuilderMesh mesh, IEnumerable<Face> faces, bool deleteSourceFaces)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IEnumerable<Face> | faces | The faces to split from the mesh. |
bool | deleteSourceFaces | True to delete the faces on the source geometry where the faces were detached; false to keep them. |
Returns
Type | Description |
---|---|
List<Face> | The faces created forming the detached face group. |