Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LogException

A variant of Logger.Log that logs an exception message.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

LogException(Exception)

A variant of Logger.Log that logs an exception message.
public void LogException(Exception exception)

Parameters

exception

Runtime Exception.

LogException(Exception, Object)

A variant of Logger.Log that logs an exception message.
public void LogException(Exception exception, Object context)

Parameters

exception

Runtime Exception.

context

Object to which the message applies.