# FailZRotationMismatch

> The RectTransform and the target have different Z rotations. No change is made.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
FailZRotationMismatch = 4
```

### Remarks

This result is only returned by [RectTransform.TryFitInsideCoplanarRectTransform](/engine/6000.6/script-reference/unityengine/recttransform/tryfitinsidecoplanarrecttransform.md). Ensure both RectTransforms share the same Z rotation before calling it, or call [RectTransform.FitInsideCoplanarRectTransform](/engine/6000.6/script-reference/unityengine/recttransform/fitinsidecoplanarrecttransform.md) directly if you have already verified their Z rotations match.
