Skip to content

Log plugin that allows you to send Logs to the Unity Editor Console tab from C++

License

Notifications You must be signed in to change notification settings

programmercert/UnityNativeDebugLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityNativeDebugLog

Log plugin that allows you to send Logs to the Unity Editor Console tab from C++ plugin

Original post of this plugin by me can be found here: http://stackoverflow.com/questions/43732825/use-debug-log-from-c

USAGE:

Import the DebugCPP.h header file

#include "DebugCPP.h"

Then use

Debug::Log("Hellow Red", Color::Red);
Debug::Log("Hellow Green", Color::Green);
Debug::Log("Hellow Blue", Color::Blue);
Debug::Log("Hellow Black", Color::Black);
Debug::Log("Hellow White", Color::White);
Debug::Log("Hellow Yellow", Color::Yellow);
Debug::Log("Hellow Orange", Color::Orange);

Debug::Log(true, Color::Black);
Debug::Log(false, Color::Red);

//No Color Specified but black will be used as the default color
Debug::Log("Hellow Default Black Color");

From Unity side Attach DebugCPP.cs from UnityNativeDebugLog/Csharp/ to any empty GameObject that is active. Log should appear on Windows if testing the plugin in the Editor.

Expectation:

image

About

Log plugin that allows you to send Logs to the Unity Editor Console tab from C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published