ConsoleAction - CodingDino/Dino-Unity-Toolkit GitHub Wiki

The ConsoleAction component prints text to the Unity editor's console.

This is an Action component, and therefore must be triggered by a separate Activator component. Actions, Activators, and Data make up the core system for the Dino Unity Toolkit.

Image: ConsoleAction printing three different logs to the console.

Actions

This component has several Action functions that can be triggered by Activators.

ActionPrintLog()

This will print the supplied text to the Unity console, as a log. Use this to display info that doesn't indicate a problem with the game.

Parameter: Description:
Message To Print The text that will be printed to the console.

ActionPrintWarning()

This will print the supplied text to the Unity console, as a warning. Use for minor issues that wouldn't stop the game from running but might indicate a problem.

Parameter: Description:
Message To Print The text that will be printed to the console.

ActionPrintError()

This will print the supplied text to the Unity console, as an error. Use this for major issues that could cause the game to break. You can set the console to pause the game when one of these issues occurs, so you can deal with the problem.

Parameter: Description:
Message To Print The text that will be printed to the console.