布局重建知识学习

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 

(侵删)

上一篇:C#向并口设备发送指令以获取并口设备的状态


下一篇:react的受控组件和非受控组件