文档

Unity Engine

Unity Engine

Size()

The data size of the capsule element. This can be useful in understanding the memory stride in a ComputeBuffer or other structure.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static int Size()

Returns

Type

Description

intThe size in bytes.