Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

TransformTweenMode

enumeration

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

Description

Defines if and how Transform tweens are calculated and/or written.

Properties

Property Description
Off Transform tweens are not calculated or written.
Parallel Transform tweens are calculated and written in parallel using a Jobs.TransformAccess.
Sequential Transform tweens are calculated and written linearly on a single thread, likely the main-thread. This may be faster than using PhysicsWorld.TransformTweenMode.Parallel if the majority of the are not split across hierarchies so that they can be written in parallel. To further clarify, if most of the Transform are not interleaved across different hierarchies, this non-parallel (sequential) mode may be faster than PhysicsWorld.TransformTweenMode.Parallel, because it avoids the overhead of splitting and synchronizing work across multiple threads when there is not enough independent hierarchy work to parallelize efficiently.
Custom Transform tweens are not calculated or written. Instead, the callback target set with PhysicsWorld.transformWriteCallbackTarget which must implement ITransformWriteCallback will be have PhysicsCallbacks.ITransformWriteCallback.OnTransformTweenWrite called allowing custom transform tween writing.