Search Unity

How to colorize the logs of a dedicated server ?

Discussion in 'Multiplayer' started by Fangh, Jan 12, 2023.

  1. Fangh

    Fangh

    Joined:
    Apr 19, 2013
    Posts:
    274
    Hello,

    I wanted this line to do color in my cmd when launching my dedicated windows server

    Code (CSharp):
    1. Debug.Log("<color=green>Start on server symbol</color>");

    upload_2023-1-12_9-40-24.png

    But it doesn't work.
    How to make this work ?

    Thank you
     
  2. ep1s0de

    ep1s0de

    Joined:
    Dec 24, 2015
    Posts:
    168
    To change the colors of the text or the background of the console, you need to change the parameters

    Code (CSharp):
    1. Console.BackgroundColor
    2. Console.ForegroundColor
     
    Saeed-Barari and Fangh like this.