Rect Mask 2D Update Clip Softness#
UI / Mask / Rect Mask 2D / Rect Mask 2D Update Clip Softness
Description#
Executes the Update Clip Softness method on the Rect Mask 2D 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("Rect Mask 2D Update Clip Softness")]
[Category("UI/Mask/Rect Mask 2D/Update Clip Softness")]
[Description("Executes the Update Clip Softness method on the Rect Mask 2D component")]
[Image(typeof(IconRectMask2D), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenInstructionRectMask2D_UpdateClipSoftness_0 : Instruction
{
[SerializeField] private GetGameObject m_RectMask2D = new GetGameObject(
new GenTypeGameObject_RectMask2D()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Update Clip Softness");
return $"{this.m_RectMask2D} {method}";
}
protected override Awaitable Run(Args args)
{
RectMask2D component = this.m_RectMask2D.Get<RectMask2D>(args);
if (component == null) return Done;
component.UpdateClipSoftness();
return Done;
}
}
}