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

Animator Reset Trigger#

Animation / Animator / Animator Reset Trigger Name

Description#

Executes the Reset Trigger method on the Animator component

Parameters#

Name Description
Name

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("Animator Reset Trigger")]
    [Category("Animation/Animator/Reset Trigger", "Name")]
    [Description("Executes the Reset Trigger method on the Animator component")]
    
    [Image(typeof(IconAnimator), ColorTheme.Type.Teal)]
    [Keywords("Animation, Clip, Play, Animate")]
    
    [Parameter("Name")]
    
    [Serializable]
    public class GenInstructionAnimator_ResetTrigger_1_StringName : Instruction
    {
        [SerializeField] private GetGameObject m_Animator = new GetGameObject(
            new GenTypeGameObject_Animator()
        );
        
        [SerializeField] private GetString m_Name = new GetString();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Reset Trigger");
            return $"{this.m_Animator} {method} ({this.m_Name})";
        }
        
        protected override Awaitable Run(Args args)
        {
            Animator component = this.m_Animator.Get<Animator>(args);
            if (component == null) return Done;
            
            component.ResetTrigger(
                (string) this.m_Name.Get(args)
            );
            
            return Done;
        }
    }
}

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