Hello,
My c++ native plugin logs various debugging information. This info shows up in the editor log, but if I build the project and launch the player, the output_log file doesn’t contain any logs from the plugin.
I tried checking the ‘development build’ checkbox, in addition I set Full logging for all categories in the player settings, but that didn’t help. What am I missing?
How do you output the info from c++ side?
The usual C++ way:
std::cout << “foobar” << std::endl;
It won’t. Unity log is not connected to streams. It seems to be just editor redirecting plugins outputs to it’s console. Player and builds settings only related to unity Debug.Log* functions. If you want to see logs in console, use one of those methods. I’m not sure if it is possible directly from native plugin, but you may provide a callback for logging from unity side.
1 Like
palex-nx, thanks. Do you think it is possible to redirect plugins outputs the same way Editor does it?
I mean, by writing some clever code in C#
Thanks palex-nx, that looks promising