Version: Unity 6.4 (6000.4)
LanguageEnglish
  • C#

PhysicsWorld.GetTransformWriteTweens

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public NativeArray<TransformWriteTween> GetTransformWriteTweens();

Returns

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.

Description

Gets all the existing Transform Write Tweens that are handled per-frame.

The returned NativeArray_1 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_1.