ForceUpdateRectTransforms()
Forces immediate processing of any pending Transform -change notifications.
阅读时间1 分钟最后更新于 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 . Recalculation is deferred when the position of a is modified through the system (for example, by animation or by setting Transform.localPosition directly).
PostLateUpdateRectTransformTransform