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

Visual Effect Initial Event Name#

Effects / Visual Effect / Visual Effect Initial Event Name

Description#

Compares the Initial Event Name property of Visual Effect component to another value

Parameters#

Name Description
Visual Effect
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.VFX;

namespace VisualScript.Runtime
{
    [Title("Visual Effect Initial Event Name")]
    [Category("Effects/Visual Effect/Initial Event Name")]
    [Description("Compares the Initial Event Name property of Visual Effect component to another value")]
    
    [Image(typeof(IconVisualEffect), ColorTheme.Type.Yellow)]
    [Keywords("Effect")]
    
    [Parameter("Visual Effect")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionString_VisualEffect_CheckInitialEventName : Condition
    {
        [SerializeField] private GetGameObject m_VisualEffect = new GetGameObject(
            new GenTypeGameObject_VisualEffect()
        );
        
        [SerializeField] private GetString m_Value = new GetString();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Initial Event Name");
            return $"{this.m_VisualEffect} {member} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            VisualEffect component = this.m_VisualEffect.Get<VisualEffect>(args);
            if (component == null) return false;
            
            return component.initialEventName == (string) this.m_Value.Get(args);
        }
    }
}

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