文档

Unity Engine

Unity Engine

LogWarning(string, Object)

Logs an import warning to the console.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
警告
Deprecated. Use context.LogImportWarning(string, Object) instead.
public void LogWarning(string warning, Object context)

Parameters

warning


context

Remarks

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