简体   繁体   中英

Unity: Android logcat spammed by "addLayerName, tid: 17835" message

I'm trying to debug my Unity Android app, but the logcat is spammed with the above mentioned message. I cannot see where in the code this line is produced. Probably something internal to Unity (?)?

Does anyone know where this message comes from and how to switcht it off?

The "addLayerName" message is internal and generated by Unity's graphics system. It's related to the rendering process like the addLayerName is suggesting, and is typically not an indication of a larger problem, although every situation is unique.

It most likely appears in the logcat output when Unity adds or updates a layer name for a specific thread ID (tid).

I recommend a debugging walkthrough of your code and checking for places where you suspect this might occur, that is, inspecting the code that relates to working with (updating) layers, experimenting a bit with commenting it out, and trying to invoke the log yourself to identify how (and why) it works.

That includes any references to LayerMask , LayerMask.NameToLayer , LayerMask.GetMask , or GameObject.layer properties, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM