Class AlembicCurves
The AlembicCurves component stores the curve information for the associated Alembic tree Node.
Namespace: UnityEngine.Formats.Alembic.Importer
Syntax
public class AlembicCurves : MonoBehaviour
Properties
CurveOffsets
Returns an array where: the i-th entry returns the starting index of the i-th curve ( the i-th curve is between [CurveOffsets[i]..CurveOffsets[i+1]-1) ).
Declaration
public int[] CurveOffsets { get; }
Property Value
Type | Description |
---|---|
Int32[] |
Positions
Returns the positions for all the curves in the current Alembic node.
Declaration
public Vector3[] Positions { get; }
Property Value
Type | Description |
---|---|
Vector3[] |
UVs
Returns an array of UVs (optional), if the imported file contained UVs.
Declaration
public Vector2[] UVs { get; }
Property Value
Type | Description |
---|---|
Vector2[] |
Velocities
Returns an array of Velocities (optional), if the imported file contained UVs.
Declaration
public Vector3[] Velocities { get; }
Property Value
Type | Description |
---|---|
Vector3[] |
Widths
Returns an array of Widths (optional), if the imported file contained widths/
Declaration
public float[] Widths { get; }
Property Value
Type | Description |
---|---|
Single[] |
Events
OnUpdateData
Is an event that is invoked every time the data in the component is updated by the AlembicStreamPlayer. This is caused by the evaluation time or import options changing. This allows users to perform data post-processing only when needed.
Declaration
public event AlembicCurves.OnUpdateDataHandler OnUpdateData
Event Type
Type | Description |
---|---|
AlembicCurves.OnUpdateDataHandler |