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

New GUID#

Operations / Generate / New GUID

  • Can Read

  • Cannot Write

Description#

Generates a new globally unique identifier every time this value is read

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]

    [Title("New GUID")]
    [Category("Operations/Generate/New GUID")]

    [Description("Generates a new globally unique identifier every time this value is read")]
    [Image(typeof(IconID), ColorTheme.Type.Yellow)]

    [Keywords("Unique", "Identifier", "ID", "UUID", "Random", "Key", "Text")]

    [Serializable]
    public class TypeStringGuid : TypeString
    {
        public override string Get(Args args)
        {
            return Guid.NewGuid().ToString();
        }

        public override string ToString()
        {
            return "New GUID";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnUpdate;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.