Image On After Deserialize#
UI / Graphic / Image / Image On After Deserialize
Description#
Executes the On After Deserialize method on the Image 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("Image On After Deserialize")]
[Category("UI/Graphic/Image/On After Deserialize")]
[Description("Executes the On After Deserialize method on the Image component")]
[Image(typeof(IconUIImage), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenInstructionImage_OnAfterDeserialize_0 : Instruction
{
[SerializeField] private GetGameObject m_Image = new GetGameObject(
new GenTypeGameObject_Image()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("On After Deserialize");
return $"{this.m_Image} {method}";
}
protected override Awaitable Run(Args args)
{
Image component = this.m_Image.Get<Image>(args);
if (component == null) return Done;
component.OnAfterDeserialize();
return Done;
}
}
}