기술 자료

Unity Engine

Unity Engine

FailZRotationMismatch

The RectTransform and the target have different Z rotations. No change is made.
읽는 시간 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.