Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsShape.ShapeArray

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

Definition

public struct PhysicsShape.ShapeArray : IEquatable<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

AsReadOnlySpanGet the shape array as a read-only span, callable from a readonly context without copying.
AsSpanGet the shape array as a span.