Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsWorld.DrawResults.PolygonGeometryElement

A Polygon Geometry Element.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Struct
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly struct PhysicsWorld.DrawResults.PolygonGeometryElement

Fields

Value

Description

colorThe color of the polygon element.
countThe number of points in the polygon element.
drawFillOptionsHow the geometry element is filled with the color. See PhysicsWorld.DrawFillOptions.
elementDepthThe depth of the element.
p0The point #0 of the polygon element.
p1The point #1 of the polygon element.
p2The point #2 of the polygon element.
p3The point #3 of the polygon element.
p4The point #4 of the polygon element.
p5The point #5 of the polygon element.
p6The point #6 of the polygon element.
p7The point #7 of the polygon element.
radiusThe radius of the polygon element.
transformThe transform of the polygon element.

Static Methods

Method

Description

SizeThe data size of the polygon element. This can be useful in understanding the memory stride in a ComputeBuffer or other structure.