transformDepth
The depth of the Transform in the hierarchy where zero is the root. When the _transformTweenMode is anything other than PhysicsWorld.TransformTweenMode.Parallel, all PhysicsBody.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 _transformTweenMode is set to PhysicsWorld.TransformTweenMode.Parallel and will be zero.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public int transformDepth { readonly get; set; }