Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ForceUpdateRectTransforms()

Forces immediate processing of any pending Transform -change notifications.
Read time 1 minuteLast updated 6 days ago

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).