![]() ![]() Just replace the one Debug.Log line with your own logging function. To help alleviate these two issues, I came up with a modified pattern I call AMVCC, or Application-Model-View-Controller-Component. You can also easily customize it if you’d rather redirect to a different logging system, file, or even network. It’s really quite easy to integrate and minimal extra code in the project, so you might as well drop this in any time some third-party code is using System.Console. but the fact that it's not working and Debug.Log statements aren't popping. / /// /// Jackson Dunstan, /// public static class UnitySystemConsoleRedirector Health system script not running in Unity no errors or Debug.Log statements popping up. Using System using System.IO using System.Text using UnityEngine /// /// Redirects writes to System.Console to Unit圓D's Debug.Log.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |