布局重建知识学习
作者:互联网
LayoutRebuilder.MarkLayoutForRebuild(rectTransform);
Mark the given RectTransform as needing it's layout to be recalculated during the next layout pass. 将给定的RectTransform标记为需要在下一次布局过程中重新计算其布局。
/// <summary>
/// Mark the given RectTransform as needing it's layout to be recalculated during the next layout pass.
/// </summary>
/// <param name="rect">Rect to rebuild.</param>
public static void MarkLayoutForRebuild(RectTransform rect)
目前从源码此处判断出可能是下一帧的layout pass进行的,除了此处其他pass未仔细查看,大概率是下一帧进行处理
节选自:https://blog.csdn.net/qq_39574690/article/details/104446897
(侵删)
标签:given,知识,layout,布局,recalculated,RectTransform,pass,Mark,重建 来源: https://www.cnblogs.com/zerozabuu/p/15252806.html