◆ TransformRelativeToAncestor()

static Matrix4x4 TransformRelativeToAncestor ( this Transform  transform,
Transform  ancenstorTransform 
)
static
Parameters
transformTransform from which the TRS will be extracted.
ancenstorTransformTransforms including and above this object, will not be applied when transforming the point.
Returns
This matrix encodes the computed transformation.