Class PolyShape
Represents a component that handles the creation of Pro
Inherited Members
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
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]
[Icon("Packages/com.unity.probuilder/Content/Icons/EditableMesh/EditableMesh.png")]
public sealed class PolyShape : MonoBehaviour
Properties
controlPoints
Gets the points that form the path for the base of this shape.
Declaration
public ReadOnlyCollection<Vector3> controlPoints { get; }
Property Value
Type | Description |
---|---|
Read |
extrude
Gets or sets the distance that this shape should extrude from the base. After setting this value,
you need to invoke Create
Declaration
public float extrude { get; set; }
Property Value
Type | Description |
---|---|
float |
flipNormals
Defines the direction for this shape's normals. Use this to invert the normals, creating a volume with the normals facing inwards.
Declaration
public bool flipNormals { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
SetControlPoints(IList<Vector3>)
Sets the list of points that form the path for the base of this shape.
Declaration
public void SetControlPoints(IList<Vector3> points)