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 Secondary Texture#

Rendering / Canvas Renderer / Canvas Renderer Get Secondary Texture

  • Can Read

  • Cannot Write

Description#

Returns the execution of Get Secondary Texture 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 Secondary Texture")]
    [Category("Rendering/Canvas Renderer/Get Secondary Texture")]
    [Description("Returns the execution of Get Secondary Texture method on the Canvas Renderer component")]
    
    [Image(typeof(IconEye), ColorTheme.Type.TextLight)]
    
    [Serializable]
    public class GenTypeTexture_CanvasRenderer_GetSecondaryTexture_1 : TypeTexture
    {
        [SerializeField] private GetGameObject m_CanvasRenderer = new GetGameObject(
            new GenTypeGameObject_CanvasRenderer()
        );
        
        [SerializeField] private GetInteger m_Index = new GetInteger();
        
        public override Texture Get(Args args)
        {
            CanvasRenderer component = this.m_CanvasRenderer.Get<CanvasRenderer>(args);
            if (component == null) return default;
            
            Texture value = (Texture) component.GetSecondaryTexture(
                (int) this.m_Index.Get(args)
            );
            
            return value;
        }
        
        public override string ToString()
        {
            return $"{this.m_CanvasRenderer} Get Secondary Texture ({this.m_Index})";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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