Scale Constraint Constraint Active#
Animation / Constraints / Scale Constraint / Scale Constraint Constraint Active
Description#
Compares the Constraint Active property of Scale Constraint component to another value
Parameters#
| Name | Description |
|---|---|
| Scale Constraint |
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;
using UnityEngine.Animations;
namespace VisualScript.Runtime
{
[Title("Scale Constraint Constraint Active")]
[Category("Animation/Constraints/Scale Constraint/Constraint Active")]
[Description("Compares the Constraint Active property of Scale Constraint component to another value")]
[Image(typeof(IconScale), ColorTheme.Type.Pink)]
[Keywords("Size, Bounds, Transform")]
[Parameter("Scale Constraint")]
[Serializable]
public class GenConditionBool_ScaleConstraint_CheckConstraintActive : Condition
{
[SerializeField] private GetGameObject m_ScaleConstraint = new GetGameObject(
new GenTypeGameObject_ScaleConstraint()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Constraint Active");
return $"{this.m_ScaleConstraint} {member}";
}
protected override bool Run(Args args)
{
ScaleConstraint component = this.m_ScaleConstraint.Get<ScaleConstraint>(args);
if (component == null) return false;
return component.constraintActive;
}
}
}