Graphic Layout Complete#
UI / Graphic / Graphic Layout Complete
Description#
Executes the Layout Complete 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 Layout Complete")]
[Category("UI/Graphic/Layout Complete")]
[Description("Executes the Layout Complete method on the Graphic component")]
[Image(typeof(IconBrush), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenInstructionGraphic_LayoutComplete_0 : Instruction
{
[SerializeField] private GetGameObject m_Graphic = new GetGameObject(
new GenTypeGameObject_Graphic()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Layout Complete");
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.LayoutComplete();
return Done;
}
}
}