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