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;
}
}
}