ドキュメント

Unity Engine

Unity Engine

FailZRotationMismatch

The RectTransform and the target have different Z rotations. No change is made.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.