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