---
tags:
    - "UI, Layout"
---

# Canvas Force Update Canvases

[UI](../../index.md) / [Layout](../index.md) / [Canvas](index.md) / **Canvas Force Update Canvases**

## Description

Executes the Force Update Canvases static method of the Canvas class

## Code

```cs
// <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;
        }
    }
}


```

