文档

Unity Engine

Unity Engine

IsLogTypeAllowed(LogType)

Check logging is enabled based on the LogType.
阅读时间1 分钟最后更新于 1 个月前

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.