Class Plane
Represents a basic plane shape.
Inherited Members
Namespace: UnityEngine.ProBuilder.Shapes
Assembly: Unity.ProBuilder.dll
Syntax
[Shape("Plane")]
public class Plane : Shape
Methods
CopyShape(Shape)
Overwrites this shape's property values by copying them from the specified Shape object.
Declaration
public override void CopyShape(Shape shape)
Parameters
Type | Name | Description |
---|---|---|
Shape | shape | The Shape to copy property values from. |
Overrides
RebuildMesh(ProBuilderMesh, Vector3, Quaternion)
Rebuilds the specified mesh using the existing property values for this shape. This includes building a list of vertices and normals for each face, applying smoothing to the faces if required, and calculating the bounds of the mesh.
Declaration
public override Bounds RebuildMesh(ProBuilderMesh mesh, Vector3 size, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh to rebuild. |
Vector3 | size | The position of the opposite corner of the bounding box for this shape. |
Quaternion | rotation | The rotation (orientation) to use for this mesh. |
Returns
Type | Description |
---|---|
Bounds | The bounds calculated for this shape after rebuilding it. |