Is Editor#
Application / Is Editor
Description#
Compares the Is Editor static property of Application class to another 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;
namespace VisualScript.Runtime
{
[Title("Is Editor")]
[Category("Application/Is Editor")]
[Description("Compares the Is Editor static property of Application class to another value")]
[Image(typeof(IconCog), ColorTheme.Type.TextLight)]
[Keywords("App, Game, Settings, Configuration")]
[Serializable]
public class GenConditionBool_Application_CheckIsEditor : Condition
{
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Application");
string member = TextUtils.ThemeAsKeyword("Is Editor");
return $"{className} {member}";
}
protected override bool Run(Args args)
{
return Application.isEditor;
}
}
}