Has User Authorization#
Application / Has User Authorization
Description#
Compares the Has User Authorization static method of Application class to another value
Parameters#
| Name | Description |
|---|---|
| Mode |
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("Has User Authorization")]
[Category("Application/Has User Authorization")]
[Description("Compares the Has User Authorization static method of Application class to another value")]
[Image(typeof(IconCog), ColorTheme.Type.TextLight)]
[Keywords("App, Game, Settings, Configuration")]
[Parameter("Mode")]
[Serializable]
public class GenConditionBool_Application_CheckHasUserAuthorization_1 : Condition
{
[SerializeField] private UserAuthorization m_Mode = default;
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Application");
string method = TextUtils.ThemeAsKeyword("Has User Authorization");
return $"{className} {method} ({this.m_Mode})";
}
protected override bool Run(Args args)
{
bool value = Application.HasUserAuthorization(
this.m_Mode
);
return value;
}
}
}