Animator Get IK Hint Position#
Animation / Animator / Animator Get IK Hint Position
Description#
Compares the Get IK Hint Position method of Animator component to another value
Parameters#
| Name | Description |
|---|---|
| Animator | |
| Hint | |
| Value |
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 Get IK Hint Position")]
[Category("Animation/Animator/Get IK Hint Position")]
[Description("Compares the Get IK Hint Position method of Animator component to another value")]
[Image(typeof(IconAnimator), ColorTheme.Type.Teal)]
[Keywords("Animation, Clip, Play, Animate")]
[Parameter("Animator")]
[Parameter("Hint")]
[Parameter("Value")]
[Serializable]
public class GenConditionVector3_Animator_CheckGetIKHintPosition_1 : Condition
{
[SerializeField] private GetGameObject m_Animator = new GetGameObject(
new GenTypeGameObject_Animator()
);
[SerializeField] private GetVector3 m_Value = new GetVector3();
[SerializeField] private AvatarIKHint m_Hint = default;
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Get IK Hint Position");
string parameters = $"({this.m_Hint})";
return $"{this.m_Animator} {method} = {this.m_Value}";
}
protected override bool Run(Args args)
{
Animator component = this.m_Animator.Get<Animator>(args);
if (component == null) return false;
Vector3 value = component.GetIKHintPosition(
this.m_Hint
);
return value == (Vector3) this.m_Value.Get(args);
}
}
}