Can Streamed Level Be Loaded#
Application / Can Streamed Level Be Loaded LevelIndex
Description#
Compares the Can Streamed Level Be Loaded static method of Application class to another value
Parameters#
| Name | Description |
|---|---|
| Level Index |
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("Can Streamed Level Be Loaded")]
[Category("Application/Can Streamed Level Be Loaded", "LevelIndex")]
[Description("Compares the Can Streamed Level Be Loaded static method of Application class to another value")]
[Image(typeof(IconCog), ColorTheme.Type.TextLight)]
[Keywords("App, Game, Settings, Configuration")]
[Parameter("Level Index")]
[Serializable]
public class GenConditionBool_Application_CheckCanStreamedLevelBeLoaded_1_IntLevelIndex : Condition
{
[SerializeField] private GetInteger m_LevelIndex = new GetInteger();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Application");
string method = TextUtils.ThemeAsKeyword("Can Streamed Level Be Loaded");
return $"{className} {method} ({this.m_LevelIndex})";
}
protected override bool Run(Args args)
{
bool value = Application.CanStreamedLevelBeLoaded(
(int) this.m_LevelIndex.Get(args)
);
return value;
}
}
}