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

Set Look At Constraint Locked#

Animation / Constraints / Look At Constraint / Set Look At Constraint Locked

Description#

Sets the Locked property of Look At Constraint component

Parameters#

Name Description
Look At Constraint
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;
using UnityEngine.Animations;

namespace VisualScript.Runtime
{
    [Title("Set Look At Constraint Locked")]
    [Category("Animation/Constraints/Look At Constraint/Locked")]
    [Description("Sets the Locked property of Look At Constraint component")]
    
    [Image(typeof(IconBullsEye), ColorTheme.Type.Pink)]
    [Keywords("Track, Follow")]
    
    [Parameter("Look At Constraint")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenInstructionBool_LookAtConstraint_SetLocked : Instruction
    {
        [SerializeField] private GetGameObject m_LookAtConstraint = new GetGameObject(
            new GenTypeGameObject_LookAtConstraint()
        );
        
        [SerializeField] private GetBool m_Value = new GetBool();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Locked");
            return $"{this.m_LookAtConstraint} {member} = {this.m_Value}";
        }
        
        protected override Awaitable Run(Args args)
        {
            LookAtConstraint component = this.m_LookAtConstraint.Get<LookAtConstraint>(args);
            if (component == null) return Done;
            
            component.locked = (bool) this.m_Value.Get(args);
            
            return Done;
        }
    }
}

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