Visual Effect Has Any System Awake#
Effects / Visual Effect / Visual Effect Has Any System Awake
Description#
Compares the Has Any System Awake method of Visual Effect component to another value
Parameters#
| Name | Description |
|---|---|
| Visual Effect |
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 Has Any System Awake")]
[Category("Effects/Visual Effect/Has Any System Awake")]
[Description("Compares the Has Any System Awake method of Visual Effect component to another value")]
[Image(typeof(IconVisualEffect), ColorTheme.Type.Yellow)]
[Keywords("Effect")]
[Parameter("Visual Effect")]
[Serializable]
public class GenConditionBool_VisualEffect_CheckHasAnySystemAwake_0 : Condition
{
[SerializeField] private GetGameObject m_VisualEffect = new GetGameObject(
new GenTypeGameObject_VisualEffect()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Has Any System Awake");
string parameters = $"()";
return $"{this.m_VisualEffect} {method}";
}
protected override bool Run(Args args)
{
VisualEffect component = this.m_VisualEffect.Get<VisualEffect>(args);
if (component == null) return false;
bool value = component.HasAnySystemAwake();
return value;
}
}
}