文档

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.