Question by 
               hugotactical · Jan 18 at 10:59 AM · 
                c#prefabselectionpingconsole.log  
              
 
              possible to ping project asset on log click ?
Hello all, I wrote a script that detects and log a message when layer errors in prefabs are found.
 foreach(T component in root.GetComponentsInChildren<T>(includeInactive: true))
             {
                 if (component.gameObject.layer != layer)
                 {
                     Trace.LogWarning($"-LC- prefab '{path}' has an isssue with '{component.gameObject.name}'. It has the component '{typeof(T)}' but the layer is not set correctly, layer should be '{LayerMask.LayerToName(layer)}'. Please fix.", component.gameObject);
                 }
             }
But it seems to me that the "ping" feature on log click used by the "context" object as documented here doesnt work unless the object is inside an opened scene. I would like to ping inside the project tab, so that users can easily navigate to the prefab to fix.
Am I doing something wrong ? More globally, is there a way to select on log click, instead of ping on log click ? Also, this is my first question, should i post here or on the forums instead ?
Thanks in advance and have nice day ! :)
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                