On Texture Change#
Bindings / On Texture Change
Description#
Executes when the Texture bound changes its value
Parameters#
| Name | Description |
|---|---|
| Initial Emit | Emits the event immediately when the component is enabled or not |
Code#
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Title("On Texture Change")]
[Image(typeof(IconTexture), ColorTheme.Type.Blue, typeof(BadgeLink))]
[Description("Executes when the Texture bound changes its value")]
[Category("Bindings/On Texture Change")]
[Serializable]
public class TriggerCoreBindTexture : TriggerCoreBindBase
{
[SerializeField] private GetTexture m_Texture = new GetTexture();
// PROPERTIES: ----------------------------------------------------------------------------
protected override string GetTitle(GameObject source) => $"change {this.m_Texture}";
protected override ISubscription Subscription => this.m_Texture;
}
}