Debug, rider unity, log/evaluate doubt

Answered

Normally "Log message to console" goes to rider console, can I change this to print messages in unity console?

0
2 comments

Hello Joao, 

It should work if you define a helper method in your code:

public static class MyDebug
{
  public static string Log(string message)
  {
    Debug.Log(message);
    return message;
  }
}

And then setting a log expression of MyDebug.Log("Hello world"), as it was discussed in the following YT issue.

0

Hello Olga,

Your solution worked very well, thanks for the help.

0

Please sign in to leave a comment.