Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Parent Constraint Locked#

Animation / Constraints / Parent Constraint / Parent Constraint Locked

Description#

Compares the Locked property of Parent Constraint component to another value

Parameters#

Name Description
Parent 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("Parent Constraint Locked")]
    [Category("Animation/Constraints/Parent Constraint/Locked")]
    [Description("Compares the Locked property of Parent Constraint component to another value")]
    
    [Image(typeof(IconHanger), ColorTheme.Type.Pink)]
    [Keywords("Socket, Ancestor, Keep, Track, Follow")]
    
    [Parameter("Parent Constraint")]
    
    [Serializable]
    public class GenConditionBool_ParentConstraint_CheckLocked : Condition
    {
        [SerializeField] private GetGameObject m_ParentConstraint = new GetGameObject(
            new GenTypeGameObject_ParentConstraint()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Locked");
            return $"{this.m_ParentConstraint} {member}";
        }
        
        protected override bool Run(Args args)
        {
            ParentConstraint component = this.m_ParentConstraint.Get<ParentConstraint>(args);
            if (component == null) return false;
            
            return component.locked;
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.