Hi , i write this wrapper class to add a new debug function which writes in the console with a certain color , it works , but the problem is that in the console the line shown is for the wrapper class itself and not where i call the function (which i know that it makes sense ) , but how do i change it so that i takes you directly to the place where i called the function , and not the wrapper.
public class Debug : UnityEngine.Debug
{
public static void LogColor(object message , Color color = default )
{
if(color == default )
color = Color.green;
Log( string.Format("<color=#{0:X2}{1:X2}{2:X2}>{3}</color>", (byte)(color.r * 255f), (byte) ( color.g * 255f ) , (byte) (color.b * 255f),message));
}
}