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

Graphic Cross Fade Alpha#

UI / Graphic / Graphic Cross Fade Alpha

Description#

Executes the Cross Fade Alpha method on the Graphic component

Parameters#

Name Description
Alpha
Duration
Ignore Time Scale

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("Graphic Cross Fade Alpha")]
    [Category("UI/Graphic/Cross Fade Alpha")]
    [Description("Executes the Cross Fade Alpha method on the Graphic component")]

    [Image(typeof(IconBrush), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]

    [Parameter("Alpha")]
    [Parameter("Duration")]
    [Parameter("Ignore Time Scale")]

    [Serializable]
    public class GenInstructionGraphic_CrossFadeAlpha_3 : Instruction
    {
        [SerializeField] private GetGameObject m_Graphic = new GetGameObject(
            new GenTypeGameObject_Graphic()
        );

        [SerializeField] private GetNumber m_Alpha = new GetNumber();

        [SerializeField] private GetNumber m_Duration = new GetNumber();

        [SerializeField] private GetBool m_IgnoreTimeScale = new GetBool();

        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Cross Fade Alpha");
            return $"{this.m_Graphic} {method} ({this.m_Alpha}, {this.m_Duration}, {this.m_IgnoreTimeScale})";
        }

        protected override Awaitable Run(Args args)
        {
            Graphic component = this.m_Graphic.Get<Graphic>(args);
            if (component == null) return Done;

            component.CrossFadeAlpha(
                (float) this.m_Alpha.Get(args),
                (float) this.m_Duration.Get(args),
                (bool) this.m_IgnoreTimeScale.Get(args)
            );

            return Done;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.