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

PhysicsBody.TransformWriteTween.transformDepth

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

public transformDepth;

Description

The depth of the Transform in the hierarchy where zero is the root. When the PhysicsWorld.transformTweenMode is anything other than PhysicsWorld.TransformTweenMode.Parallel, all TransformWriteTween are sorted into ascending depth order so that writing the transforms in tween order will result in the deeper children correctly overwriting any parent transform writes. This is NOT set when the PhysicsWorld.transformTweenMode is set to PhysicsWorld.TransformTweenMode.Parallel and will be zero.