Class PolyShape
Represents a component that handles the creation of ProBuilderMesh shapes from a set of contiguous points.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
[AddComponentMenu("")]
[DisallowMultipleComponent]
[ExcludeFromPreset]
[ExcludeFromObjectFactory]
public sealed class PolyShape : MonoBehaviour
Properties
Name | Description |
---|---|
controlPoints | Gets the points that form the path for the base of this shape. |
extrude | Gets or sets the distance that this shape should extrude from the base. After setting this value, you need to invoke CreateShapeFromPolygon(PolyShape) to rebuild the ProBuilderMesh component. |
flipNormals | Defines the direction for this shape's normals. Use this to invert the normals, creating a volume with the normals facing inwards. |
Methods
Name | Description |
---|---|
SetControlPoints(IList<Vector3>) | Sets the list of points that form the path for the base of this shape. |