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 Renderer Get Alpha#

Rendering / Canvas Renderer / Canvas Renderer Get Alpha

  • Can Read

  • Cannot Write

Description#

Returns the execution of Get Alpha method on the Canvas Renderer component

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.Rendering;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Canvas Renderer Get Alpha")]
    [Category("Rendering/Canvas Renderer/Get Alpha")]
    [Description("Returns the execution of Get Alpha method on the Canvas Renderer component")]
    
    [Image(typeof(IconEye), ColorTheme.Type.TextLight)]
    
    [Serializable]
    public class GenTypeNumber_CanvasRenderer_GetAlpha_0 : TypeNumber
    {
        [SerializeField] private GetGameObject m_CanvasRenderer = new GetGameObject(
            new GenTypeGameObject_CanvasRenderer()
        );
        
        public override double Get(Args args)
        {
            CanvasRenderer component = this.m_CanvasRenderer.Get<CanvasRenderer>(args);
            if (component == null) return default;
            
            double value = (double) component.GetAlpha();
            
            return value;
        }
        
        public override string ToString()
        {
            return $"{this.m_CanvasRenderer} Get Alpha";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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