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;
}
}
}