JavaScript => public static function ForceUpdateCanvases(): void;
C# => public static void ForceUpdateCanvases();
Description 描述
Force all canvases to update their content.
强制更新所有画布的内容。
A canvas performs its layout and content generation calculations at the end of a frame, just before rendering, in order to ensure that it's based on all the latest changes that may have happened during that frame. This means that in the Start callback and the first Update callback, the layout and content under the canvas may not be up-to-date.
在最后一帧画布执行布局和内容生产的计算,仅在渲染之前,为了确保在该帧期间发生的最新的改变在画布上。这意味着在返回调用开始和首次更新返回调用时,画布下的布局和内容可能不是最新的。
Code that relies on up-to-date layout or content can call this method to ensure it before executing code that relies on it.