Rect Transform Reapply Driven Properties#
UI / Layout / Rect Transform / Rect Transform Reapply Driven Properties
Description#
Executes whenever the static Reapply Driven Properties event of Rect Transform class is invoked
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 Transform Reapply Driven Properties")]
[Category("UI/Layout/Rect Transform/Reapply Driven Properties")]
[Description("Executes whenever the static Reapply Driven Properties event of Rect Transform class is invoked")]
[Image(typeof(IconRectTransform), ColorTheme.Type.TextLight)]
[Keywords("UI, Layout")]
[Serializable]
public class GenTriggerRectTransform_ReapplyDrivenProperties : Trigger
{
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Rect Transform");
string member = TextUtils.ThemeAsKeyword("Reapply Driven Properties");
return $"{className} {member}";
}
public override void OnDisable()
{
base.OnDisable();
RectTransform.reapplyDrivenProperties -= this.Run;
}
public override void OnEnable()
{
base.OnEnable();
RectTransform.reapplyDrivenProperties += this.Run;
}
private void Run(RectTransform value1)
{
using Args args = Args.Get(
this.Component,
this.Component
);
this.Run(args);
}
}
}