Product Name#
Application / Product Name
Description#
Compares the Product Name 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("Product Name")]
[Category("Application/Product Name")]
[Description("Compares the Product Name 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_CheckProductName : Condition
{
[SerializeField] private GetString m_Value = new GetString();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Application");
string member = TextUtils.ThemeAsKeyword("Product Name");
return $"{className} {member} = {this.m_Value}";
}
protected override bool Run(Args args)
{
return Application.productName == (string) this.m_Value.Get(args);
}
}
}