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 Will Render Canvases#

UI / Layout / Canvas / Canvas Will Render Canvases

Description#

Executes whenever the static Will Render Canvases event of Canvas class is invoked

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 Will Render Canvases")]
    [Category("UI/Layout/Canvas/Will Render Canvases")]
    [Description("Executes whenever the static Will Render Canvases event of Canvas class is invoked")]
    
    [Image(typeof(IconCanvas), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]
    
    [Serializable]
    public class GenTriggerCanvas_WillRenderCanvases : Trigger
    {
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Canvas");
            string member = TextUtils.ThemeAsKeyword("Will Render Canvases");
            return $"{className} {member}";
        }
        
        public override void OnDisable()
        {
            base.OnDisable();
            Canvas.willRenderCanvases -= this.Run;
        }
        
        public override void OnEnable()
        {
            base.OnEnable();
            Canvas.willRenderCanvases += this.Run;
        }
        
        private void Run()
        {
            using Args args = Args.Get(
                this.Component,
                this.Component
            );
            
            this.Run(args);
        }
    }
}

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