Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsShape.ShapeArray

Fixed vertex shape array.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Struct
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public struct PhysicsShape.ShapeArray

Constructors

Constructor

Description

ShapeArray(System.ReadOnlySpan{UnityEngine.Vector2})Construct with the specified vertices.

Properties

Property

Description

this[]Accessor for the shape array.
vertex0Vertex #0.
vertex1Vertex #1.
vertex2Vertex #2.
vertex3Vertex #3.
vertex4Vertex #4.
vertex5Vertex #5.
vertex6Vertex #6.
vertex7Vertex #7.

Methods

Method

Description

AsSpanGet the shape array as a span.