parent | The parent Transform to use. |
worldPositionStays | If true, the parent-relative position, scale and rotation is modified such that the object keeps the same world space position, rotation and scale as before. |
Set the parent of the transform.
This method is the same as the parent property except that it's possible to make the Transform keep its local orientation rather than its global orientation by setting the worldPositionStays parameter to false.