How to selected GUI element in С#?,Как выделить GUI элемент мышью?

Hello. Tell me please, how to write code on C# GUI selection of an element with the mouse button in the unity custom editor as in the example of the standard selection in Unity? Sorry for my bad English.

Thank you!!
112944-1.png

Hi, if I understand correctly, you are trying to select a file in the project via C# code.
This can be done by using AssetDatabase.LoadAssetAtPath method and a Selection class.

AssetDatabase:

Selection: