Documentation

Unity Engine


Unity Engine


LogError(string, Object)

Logs an import error message to the console.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Warning
Deprecated. Use context.LogImportError(string, Object) instead.
public void LogError(string warning, Object context)

Parameters

warning


context

Remarks

Pass an asset as the second argument to link the error to the asset in the editor.
Additional Resources: Debug.LogError.