Animator Interrupt Match Target#
Animation / Animator / Animator Interrupt Match Target CompleteMatch
Description#
Executes the Interrupt Match Target method on the Animator component
Parameters#
| Name | Description |
|---|---|
| Complete Match |
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;
namespace VisualScript.Runtime
{
[Title("Animator Interrupt Match Target")]
[Category("Animation/Animator/Interrupt Match Target", "CompleteMatch")]
[Description("Executes the Interrupt Match Target method on the Animator component")]
[Image(typeof(IconAnimator), ColorTheme.Type.Teal)]
[Keywords("Animation, Clip, Play, Animate")]
[Parameter("Complete Match")]
[Serializable]
public class GenInstructionAnimator_InterruptMatchTarget_1_BoolCompleteMatch : Instruction
{
[SerializeField] private GetGameObject m_Animator = new GetGameObject(
new GenTypeGameObject_Animator()
);
[SerializeField] private GetBool m_CompleteMatch = new GetBool();
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Interrupt Match Target");
return $"{this.m_Animator} {method} ({this.m_CompleteMatch})";
}
protected override Awaitable Run(Args args)
{
Animator component = this.m_Animator.Get<Animator>(args);
if (component == null) return Done;
component.InterruptMatchTarget(
(bool) this.m_CompleteMatch.Get(args)
);
return Done;
}
}
}