Class SpriteShapeObjectPlacement
SpriteShapeObjectPlacement helps placing a game Object along the Spline.
Inherited Members
Object.GetEntityId()
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, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
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.U2D
Assembly: Unity.2D.SpriteShape.Runtime.dll
Syntax
[ExecuteInEditMode]
[ExecuteAlways]
public class SpriteShapeObjectPlacement : MonoBehaviour
Properties
endPoint
End point of the pair of points between which the object is placed. Must be between 0 and points in Spline and larger than StartPoint.
Declaration
public int endPoint { get; set; }
Property Value
Type | Description |
---|---|
int |
mode
Set SpriteShape Object placement mode.
Declaration
public SpriteShapeObjectPlacementMode mode { get; set; }
Property Value
Type | Description |
---|---|
SpriteShapeObjectPlacementMode |
ratio
Ratio of the distance between the startPoint and the endPoint. Must be between 0 and 1
Declaration
public float ratio { get; set; }
Property Value
Type | Description |
---|---|
float |
setNormal
Dictates whether the object needs to be rotated to the normal along the spline.
Declaration
public bool setNormal { get; set; }
Property Value
Type | Description |
---|---|
bool |
spriteShapeController
Source SpriteShapeController gameObject that contains the Spline to which this Object is placed along.
Declaration
public SpriteShapeController spriteShapeController { get; set; }
Property Value
Type | Description |
---|---|
SpriteShapeController |
startPoint
Start point of the pair of points between which the object is placed. Must be between 0 and points in Spline.
Declaration
public int startPoint { get; set; }
Property Value
Type | Description |
---|---|
int |