public static int GetAssetsFolderInstanceID()
        {
            string path = "Assets";
            string guid = AssetDatabase.AssetPathToGUID(path);

            return(AssetDatabase.GetInstanceIDFromGUID(guid));
        }
        private void SelectSceneAsset(object userData)
        {
            int instanceIdFromGuid = AssetDatabase.GetInstanceIDFromGUID(AssetDatabase.AssetPathToGUID(EditorSceneManager.GetSceneByHandle((int)userData).path));

            Selection.activeInstanceID = instanceIdFromGuid;
            EditorGUIUtility.PingObject(instanceIdFromGuid);
        }
        private void SelectSceneAsset(object userData)
        {
            int    handle             = (int)userData;
            string guid               = AssetDatabase.AssetPathToGUID(EditorSceneManager.GetSceneByHandle(handle).path);
            int    instanceIDFromGUID = AssetDatabase.GetInstanceIDFromGUID(guid);

            Selection.activeInstanceID = instanceIDFromGUID;
            EditorGUIUtility.PingObject(instanceIDFromGUID);
        }
 public static int GetAssetsFolderInstanceID()
 {
     return(AssetDatabase.GetInstanceIDFromGUID(AssetDatabase.AssetPathToGUID("Assets")));
 }