Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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:
    217
    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:
    163
    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
     
    Fangh likes this.