Documentation

Unity Engine

Unity Engine

IsLogTypeAllowed(LogType)

Check logging is enabled based on the LogType.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool IsLogTypeAllowed(LogType logType)

Parameters

logType

The type of the log message.

Returns

Type

Description

boolRetrun true in case logs of LogType will be logged otherwise returns false.

Remarks

Return true based on Logger.filterLogType and Logger.logEnabled.