public static void ClearBookMarkAsset()
 {
     if (PinnedObjectsList.ContainsObject(LastSelectedObject))
     {
         PeekSerializeObject.ChangeLastSelectedObject(null);
     }
     PinnedObjectsList.ClearArray();
     Save();
 }
        public static bool AddNewSelection(UnityEngine.Object currentSelectedObject)
        {
            if (currentSelectedObject == null)
            {
                return(false);
            }
            if (currentSelectedObject.GetType().ToString() == "Search.Pro.InspectorRecentSO")
            {
                return(false);
            }
            ChangeLastSelectedObject(currentSelectedObject);
            SelectedObjectsList.AddObject(LastSelectedObject);
            SetCurrentIndex(SelectedObjectsCount - 1);

            SelectedObjectsWithoutDuplicateList.RemoveObject(currentSelectedObject);
            if (!PinnedObjectsList.ContainsObject(currentSelectedObject) &&
                !PinnedObjectsInScenesList.ContainsObject(currentSelectedObject))
            {
                SelectedObjectsWithoutDuplicateList.AddObject(currentSelectedObject);
            }
            ShrunkListIfNeeded();
            return(true);
        }