public static void RemoveAssetFromBookMark(int index) { SelectedObjectsWithoutDuplicateList.AddObject(PinnedObjectsIndex(index)); PinnedObjectsList.RemoveAt(index); Save(); }
public static bool ShrunkListIfNeeded() { bool hasChanged = false; if (SelectedObjectsCount >= UnityEssentialsPreferences.GetMaxSelectedObjectStored()) { hasChanged = true; SelectedObjectsList.RemoveAt(0); } while (SelectedObjectsWithoutDuplicateCount >= UnityEssentialsPreferences.GetMaxObjectSHown()) { hasChanged = true; SelectedObjectsWithoutDuplicateList.RemoveAt(0); } while (PinnedObjectsCount >= UnityEssentialsPreferences.GetMaxPinnedObject()) { hasChanged = true; PinnedObjectsList.RemoveAt(0); } while (PinnedObjectsInScenesCount >= UnityEssentialsPreferences.GetMaxPinnedObject()) { hasChanged = true; PinnedObjectsInScenesList.RemoveAt(0); PinnedObjectsNameInScenesList.RemoveAt(0); PinnedObjectsScenesLinkList.RemoveAt(0); } return(hasChanged); }
public static void RemoveBookMarkedItem(int index) { if (LastSelectedObject == PinnedObjectsInScenesIndex(index)) { PeekSerializeObject.ChangeLastSelectedObject(null); } SelectedObjectsList.RemoveAllObject(PinnedObjectsIndex(index)); SelectedObjectsWithoutDuplicateList.RemoveObject(PinnedObjectsIndex(index)); PinnedObjectsList.RemoveAt(index); Save(); }