Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Canvas Force Update Canvases#

UI / Layout / Canvas / Canvas Force Update Canvases

Description#

Executes the Force Update Canvases static method of the Canvas class

Code#

// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.UI;

namespace VisualScript.Runtime
{
    [Title("Canvas Force Update Canvases")]
    [Category("UI/Layout/Canvas/Force Update Canvases")]
    [Description("Executes the Force Update Canvases static method of the Canvas class")]
    
    [Image(typeof(IconCanvas), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]
    
    [Serializable]
    public class GenInstructionCanvas_ForceUpdateCanvases_0 : Instruction
    {
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Canvas");
            string method = TextUtils.ThemeAsKeyword("Force Update Canvases");
            return $"{className} {method}";
        }
        
        protected override Awaitable Run(Args args)
        {
            Canvas.ForceUpdateCanvases();
            
            return Done;
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.