Loop Item#
Parameters / Loop Item
Can Read
Cannot Write
Description#
The entry of the collection being processed by the current iteration cycle
Code#
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Get]
[ScopeByParameter(ArgsCollectionParameters.PARAMETER_COLLECTION_ITEM)]
[Title("Loop Item")]
[Category("Parameters/Loop Item")]
[Description("The entry of the collection being processed by the current iteration cycle")]
[Image(typeof(IconCubeOutline), ColorTheme.Type.Blue, typeof(BadgeLoop))]
[Keywords("Loop", "Foreach", "Iteration", "Entry", "Item", "Element", "Asset", "Object")]
[Serializable]
public class TypeScriptableObjectLoopParameterItem : TypeScriptableObject
{
public override ScriptableObject Get(Args args)
{
return ArgsCollectionParameters.GetItem<ScriptableObject>(args);
}
public override string ToString()
{
return "Loop Item";
}
protected override SubscriptionMode Subscription => SubscriptionMode.None;
}
}