On Animation Clip Change#
Bindings / On Animation Clip Change
Description#
Executes when the Animation Clip 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 Animation Clip Change")]
[Image(typeof(IconAnimationClip), ColorTheme.Type.Teal, typeof(BadgeLink))]
[Description("Executes when the Animation Clip bound changes its value")]
[Category("Bindings/On Animation Clip Change")]
[Serializable]
public class TriggerCoreBindAnimationClip : TriggerCoreBindBase
{
[SerializeField] private GetAnimationClip m_AnimationClip = new GetAnimationClip();
// PROPERTIES: ----------------------------------------------------------------------------
protected override string GetTitle(GameObject source) => $"change {this.m_AnimationClip}";
protected override ISubscription Subscription => this.m_AnimationClip;
}
}