Quantcast
Channel: Questions in topic: "ping"
Viewing all articles
Browse latest Browse all 93

possible to ping project asset on log click ?

$
0
0
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(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][1] 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 ! :) [1]: https://docs.unity3d.com/ScriptReference/Debug.Log.html

Viewing all articles
Browse latest Browse all 93

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>