Graphic On Rebuild Requested#
UI / Graphic / Graphic On Rebuild Requested
Description#
Executes the On Rebuild Requested method on the Graphic 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.UI;
namespace VisualScript.Runtime
{
[Title("Graphic On Rebuild Requested")]
[Category("UI/Graphic/On Rebuild Requested")]
[Description("Executes the On Rebuild Requested method on the Graphic component")]
[Image(typeof(IconBrush), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenInstructionGraphic_OnRebuildRequested_0 : Instruction
{
[SerializeField] private GetGameObject m_Graphic = new GetGameObject(
new GenTypeGameObject_Graphic()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("On Rebuild Requested");
return $"{this.m_Graphic} {method}";
}
protected override Awaitable Run(Args args)
{
Graphic component = this.m_Graphic.Get<Graphic>(args);
if (component == null) return Done;
component.OnRebuildRequested();
return Done;
}
}
}