Unityengine.Debug error:Log(Object)

Asked

Viewed 45 times

2

Personal my app is ready and when I compile it, it getting this error:

Unityengine.Debug:Log(Object)

How do I stop receiving this error? Don’t compile, it stops at this.

Does anyone know why he stops at debug?

  • 1

    Would not be Debug.Log instead of Debug:Log

  • that there is the error to function I put so Debug.Log (this + " ");

1 answer

2

From what I understand, the method Debug.Log is not recognizing the object this that you passed as 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 cannot be converted into a string - the this.

Construct a recognizable error message and pass it in the parameter.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.