UIBlock.CalculateLayout
CalculateLayout()
The Nova Engine will automatically process all modified layout properties at the end of each frame. However, some UI scenarios may require knowing the Calculated Size or another calculated layout value intra-frame, before the Nova Engine has had a chance to run. Calling this method will force an inline recalculation of all modified layout properties on this UIBlock.
Remarks
This method only guarantees up-to-date calculated values for this UIBlock alone, meaning other UIBlocks in this UIBlock's hierarchy may not be updated in their entirety until the Nova Engine runs without
their own explicit call to CalculateLayout()
.
This call will always overwrite transform.localPosition
with the calculated layout position.
UnityEngine.GameObject.activeInHierarchy
must be true, otherwise nothing will be recalculated.
Declaration
public void CalculateLayout()