FailZRotationMismatch
The RectTransform and the target have different Z rotations. No change is made.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
FailZRotationMismatch = 4
Remarks
This result is only returned by RectTransform.TryFitInsideCoplanarRectTransform. Ensure both RectTransforms share the same Z rotation before calling it, or call RectTransform.FitInsideCoplanarRectTransform directly if you have already verified their Z rotations match.