Documentation

Unity Engine


User Manual

Script Reference

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.
Read time 1 minuteLast updated 10 days ago

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.