GetTransformWriteTweens()
Gets all the existing Transform Write Tweens that are handled per-frame. 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 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
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. |