Struct SpriteShapeGenerator
Syntax
public struct SpriteShapeGenerator : IJob
Fields
m_Bounds
Declaration
public NativeArray<Bounds> m_Bounds
Field Value
Type |
Description |
NativeArray<Bounds> |
|
m_ColliderPoints
Declaration
public NativeArray<float2> m_ColliderPoints
Field Value
Type |
Description |
NativeArray<float2> |
|
m_GeomArray
Declaration
public NativeArray<SpriteShapeSegment> m_GeomArray
Field Value
Type |
Description |
NativeArray<SpriteShapeSegment> |
|
m_IndexArray
Declaration
public NativeArray<ushort> m_IndexArray
Field Value
Type |
Description |
NativeArray<UInt16> |
|
m_PosArray
Declaration
public NativeSlice<Vector3> m_PosArray
Field Value
Type |
Description |
NativeSlice<Vector3> |
|
m_TanArray
Declaration
public NativeSlice<Vector4> m_TanArray
Field Value
Type |
Description |
NativeSlice<Vector4> |
|
m_Uv0Array
Declaration
public NativeSlice<Vector2> m_Uv0Array
Field Value
Type |
Description |
NativeSlice<Vector2> |
|
Methods
Cleanup()
Declaration
Execute()
Declaration
Declaration
public void Prepare(SpriteShapeController controller, SpriteShapeParameters shapeParams, int maxArrayCount, NativeArray<ShapeControlPoint> shapePoints, NativeArray<SpriteShapeMetaData> metaData, AngleRangeInfo[] angleRanges, Sprite[] segmentSprites, Sprite[] cornerSprites)
Parameters
Type |
Name |
Description |
SpriteShapeController |
controller |
|
SpriteShapeParameters |
shapeParams |
|
Int32 |
maxArrayCount |
|
NativeArray<ShapeControlPoint> |
shapePoints |
|
NativeArray<SpriteShapeMetaData> |
metaData |
|
AngleRangeInfo[] |
angleRanges |
|
Sprite[] |
segmentSprites |
|
Sprite[] |
cornerSprites |
|