| Parameter | Description |
|---|---|
| localToParentMatrix | A matrix representing the parent-relative affine transformation. |
Sets the local (parent-relative) position, rotation, and scale to the values encoded in a 4x4 local-to-parent matrix.
This function gives identical results to the following operations, but is more efficient: AffineTransform.decompose(localToParentMatrix, out float3 position, out quaternion rotation, out float3 scale); transformRef.LocalPosition = position; transformRef.LocalRotation = rotation; transformRef.LocalScale = scale;
| Parameter | Description |
|---|---|
| position | The new parent-relative position |
| rotation | The new parent-relative rotation |
| scale | The new parent-relative scale |
Sets the local (parent-relative) position, rotation, and scale to the provided values.
This function gives identical results to the following operations, but is more efficient: transformRef.LocalPosition = position; transformRef.LocalRotation = rotation; transformRef.LocalScale = scale;