Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTransformWriteTweens()

Gets all the existing Transform Write Tweens that are handled per-frame. If the _transformTweenMode is PhysicsWorld.TransformTweenMode.Sequential then the tweens are sorted into ascending transform depth allowing writing to the Transform hierarchy by simply iterating the tweens. If the _transformTweenMode is PhysicsWorld.TransformTweenMode.Sequential then the tweens are unsorted as a TransformAccessArray is used to write them. See PhysicsBody.TransformWriteTween and PhysicsBody.TransformWriteMode. The returned NativeArray<T> aliases the per-frame internal buffer owned by the world; it does not own its memory (so disposing it does nothing). The contents are only valid until the next simulation step runs, after which the buffer may be reused or destroyed. If a longer-lived copy is required, copy the contents into a caller-owned NativeArray<T>.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public NativeArray<PhysicsBody.TransformWriteTween> GetTransformWriteTweens()

Returns

Type

Description

NativeArray<TransformWriteTween>A world-owned view of the existing Transform Write Tweens that are handled per-frame. Contents are invalidated by the next simulation step.