Animator Has Bound Playables#
Animation / Animator / Animator Has Bound Playables
Description#
Compares the Has Bound Playables property of Animator component to another value
Parameters#
| Name | Description |
|---|---|
| Animator |
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 Has Bound Playables")]
[Category("Animation/Animator/Has Bound Playables")]
[Description("Compares the Has Bound Playables property of Animator component to another value")]
[Image(typeof(IconAnimator), ColorTheme.Type.Teal)]
[Keywords("Animation, Clip, Play, Animate")]
[Parameter("Animator")]
[Serializable]
public class GenConditionBool_Animator_CheckHasBoundPlayables : Condition
{
[SerializeField] private GetGameObject m_Animator = new GetGameObject(
new GenTypeGameObject_Animator()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Has Bound Playables");
return $"{this.m_Animator} {member}";
}
protected override bool Run(Args args)
{
Animator component = this.m_Animator.Get<Animator>(args);
if (component == null) return false;
return component.hasBoundPlayables;
}
}
}