docs.unity3d.com
    Show / Hide Table of Contents

    Struct SpriteShapeGenerator

    Namespace: UnityEngine.U2D
    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
    public void Cleanup()

    Execute()

    Declaration
    public void Execute()

    Prepare(SpriteShapeController, SpriteShapeParameters, Int32, NativeArray<ShapeControlPoint>, NativeArray<SpriteShapeMetaData>, AngleRangeInfo[], Sprite[], Sprite[])

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023