Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Texts#

Strings / Texts

  • Can Read

  • Cannot Write

Description#

A collection made of the list of texts defined below

Parameters#

Name Description
Texts The list of values that make up the collection

Code#

using System;
using System.Collections.Generic;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]

    [Title("Texts")]
    [Category("Strings/Texts")]

    [Description("A collection made of the list of texts defined below")]
    [Image(typeof(IconString), ColorTheme.Type.Yellow, typeof(BadgeList))]

    [Parameter("Texts", "The list of values that make up the collection")]

    [Keywords("String", "List", "Array", "Constant", "Values", "Set")]

    [Serializable]
    public class TypeCollectionStrings : TTypeCollection<string>
    {
        // EXPOSED MEMBERS: -----------------------------------------------------------------------

        [SerializeField] private List<GetString> m_Texts = new List<GetString>();

        // PUBLIC METHODS: ------------------------------------------------------------------------

        public override string ToString()
        {
            return $"Texts ({this.m_Texts.Count})";
        }

        // PROTECTED METHODS: ---------------------------------------------------------------------

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;

        protected override void OnCapture(Args args, List<string> items)
        {
            foreach (GetString text in this.m_Texts)
            {
                items.Add(text?.Get(args) ?? string.Empty);
            }
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.