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