◆ TransformBoundsRelativeToAncestor()

static Bounds TransformBoundsRelativeToAncestor ( this Transform  transform,
Transform  ancenstorTransform,
Bounds  bounds 
)
static
Parameters
transformTransform from which the rotation and scaling will be applied to the provided point. Effectively, only local transforms between this object and the ancestorTransform, in the hierarchy, will be applied.
ancenstorTransformTransforms including and above this object, will NOT be applied when transforming the bounds.
boundsbounds to transform
Returns
Resultant transformed bounds.