Join our Discord Channel
using UnityEngine;namespace HutongGames.PlayMaker.Actions{ [ActionCategory(ActionCategory.Debug)] [Tooltip("Debug logs to the screen instead of the console.")] public class ConsoleDebugLogPlayMaker : FsmStateAction { [Tooltip("Info, Warning, or Error.")] [RequiredField] public LogLevel LogLevel; [Tooltip("Variable to debug")] [RequiredField] public FsmVar info; public override void Reset() { } public override void OnEnter() { DebugConsole.Log( info.GetValue().ToString(), LogLevel.ToString()); } }}