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

Animation Remove Clip#

Animation / Animation / Animation Remove Clip Clip

Description#

Executes the Remove Clip method on the Animation component

Parameters#

Name Description
Clip

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("Animation Remove Clip")]
    [Category("Animation/Animation/Remove Clip", "Clip")]
    [Description("Executes the Remove Clip method on the Animation component")]
    
    [Image(typeof(IconAnimation), ColorTheme.Type.Teal)]
    [Keywords("Animation, Clip, Play, Animate")]
    
    [Parameter("Clip")]
    
    [Serializable]
    public class GenInstructionAnimation_RemoveClip_1_AnimationClipClip : Instruction
    {
        [SerializeField] private GetGameObject m_Animation = new GetGameObject(
            new GenTypeGameObject_Animation()
        );
        
        [SerializeField] private GetAnimationClip m_Clip = new GetAnimationClip();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Remove Clip");
            return $"{this.m_Animation} {method} ({this.m_Clip})";
        }
        
        protected override Awaitable Run(Args args)
        {
            Animation component = this.m_Animation.Get<Animation>(args);
            if (component == null) return Done;
            
            component.RemoveClip(
                (AnimationClip) this.m_Clip.Get(args)
            );
            
            return Done;
        }
    }
}

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