기술 자료

Unity Engine

Unity Engine

ForceUpdateRectTransforms()

Forces immediate processing of any pending Transform -change notifications.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void ForceUpdateRectTransforms()

Remarks

Call this method when you need accurate values for RectTransform.rect, RectTransform.anchoredPosition, or corner positions, if the recalculation of RectTransform.anchoredPosition and RectTransform.rect is deferred until
PostLateUpdate
. Recalculation is deferred when the position of a
RectTransform
is modified through the
Transform
system (for example, by animation or by setting Transform.localPosition directly).