---
tags:
    - "Direction, Euler, Transform"
---

# Rotation Constraint Constraint Active

[Animation](../../index.md) / [Constraints](../index.md) / [Rotation Constraint](index.md) / **Rotation Constraint Constraint Active**

## Description

Compares the Constraint Active property of Rotation Constraint component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Rotation Constraint |  |

## Code

```cs
// <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("Rotation Constraint Constraint Active")]
    [Category("Animation/Constraints/Rotation Constraint/Constraint Active")]
    [Description("Compares the Constraint Active property of Rotation Constraint component to another value")]
    
    [Image(typeof(IconQuaternion), ColorTheme.Type.Pink)]
    [Keywords("Direction, Euler, Transform")]
    
    [Parameter("Rotation Constraint")]
    
    [Serializable]
    public class GenConditionBool_RotationConstraint_CheckConstraintActive : Condition
    {
        [SerializeField] private GetGameObject m_RotationConstraint = new GetGameObject(
            new GenTypeGameObject_RotationConstraint()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Constraint Active");
            return $"{this.m_RotationConstraint} {member}";
        }
        
        protected override bool Run(Args args)
        {
            RotationConstraint component = this.m_RotationConstraint.Get<RotationConstraint>(args);
            if (component == null) return false;
            
            return component.constraintActive;
        }
    }
}


```

