Error UnityEngine.Debug: Log (Object)

2

Personally my app is ready and when I compile it, it is giving this error:

  

UnityEngine.Debug: Log (Object)

How do I stop receiving this error? Do not compile it into it.

Does anyone know why it stops debugging?

    
asked by anonymous 26.10.2017 / 21:14

1 answer

2

As far as I understand, the Debug.Log method is not recognizing the this object you passed as a parameter.

Debug.Log

public static void Log(object message);
public static void Log(object message, Object context);
  • message - > String or object to be converted to string representation for display;
  • Object - > Object to which the message applies;

You passed an object that can not be converted to string - this .

Construct a recognizable error message and pass it on to the parameter.

    
26.10.2017 / 23:01