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

Debug Log Text#

Debug / Debug Log Text

Description#

Prints a text in the Console

Parameters#

Name Description
Text The text to print

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Debug Log Text")]
    [Image(typeof(IconSpeech), ColorTheme.Type.TextLight)]
    
    [Description("Prints a text in the Console")]
    [Category("Debug/Log Text")]
    
    [Parameter("Text", "The text to print")]
    
    [Keywords("Print", "Console", "Debug")]
    
    [Serializable]
    public class InstructionCoreDebugLogText : Instruction
    {
        [SerializeField] private GetString m_Text = new GetString();

        protected override string GetTitle(GameObject source) => $"Log {this.m_Text}";

        protected override Awaitable Run(Args args)
        {
            Debug.Log(this.m_Text.Get(args));
            return Done;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.