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(IconVector2), ColorTheme.Type.Lime, typeof(BadgeLoop))]
[Keywords("Loop", "Foreach", "Iteration", "Entry", "Item", "Element", "Position", "Direction")]
[Serializable]
public class TypeVector2LoopParameterItem : TypeVector2
{
public override Vector2 Get(Args args)
{
return ArgsCollectionParameters.GetItem<Vector2>(args);
}
public override string ToString()
{
return "Loop Item";
}
protected override SubscriptionMode Subscription => SubscriptionMode.None;
}
}