Unity Version#
Application / Unity Version
Description#
Compares the Unity Version static property of Application class to another value
Parameters#
| Name | Description |
|---|---|
| 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("Unity Version")]
[Category("Application/Unity Version")]
[Description("Compares the Unity Version static property of Application class to another value")]
[Image(typeof(IconCog), ColorTheme.Type.TextLight)]
[Keywords("App, Game, Settings, Configuration")]
[Parameter("Value")]
[Serializable]
public class GenConditionString_Application_CheckUnityVersion : Condition
{
[SerializeField] private GetString m_Value = new GetString();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Application");
string member = TextUtils.ThemeAsKeyword("Unity Version");
return $"{className} {member} = {this.m_Value}";
}
protected override bool Run(Args args)
{
return Application.unityVersion == (string) this.m_Value.Get(args);
}
}
}