ProjectDDD/Assets/External/Behavior Designer/Runtime/Tasks/Unity/Debug/LogValue.cs
2025-07-07 19:25:56 +09:00

24 lines
552 B (Stored with Git LFS)
C#

using UnityEngine;
namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityDebug
{
[TaskCategory("Unity/Debug")]
[TaskDescription("Log a variable value.")]
public class LogValue : Action
{
[Tooltip("The variable to output")]
public SharedGenericVariable variable;
public override TaskStatus OnUpdate()
{
Debug.Log(variable.Value.value.GetValue());
return TaskStatus.Success;
}
public override void OnReset()
{
variable = null;
}
}
}