文档

Unity Engine

Unity Engine

GetOwnedTransforms()

Get the Transform that owns each PhysicsBody, PhysicsShape and PhysicsJoint in this world. Only owners that are a Component contribute a Transform, and each Transform is included only once. This must be called from the main thread.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public TransformAccessArray GetOwnedTransforms()

Returns

Type

Description

TransformAccessArrayThe owned transform results as a TransformAccessArray. This must be disposed of after use otherwise leaks will occur.