文档

Unity Engine

Unity Engine

PhysicsWorld.DrawResults.LineElement

A Line Element.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Fields

Value

Description

colorThe color of the line element.
elementDepthThe depth of the element.
lengthThe length of the line element.
transformThe transform of the line element.

Static Methods

Method

Description

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