首次提交
This commit is contained in:
BIN
Assets/Plugins/vFavorites/Manual.pdf
Normal file
BIN
Assets/Plugins/vFavorites/Manual.pdf
Normal file
Binary file not shown.
7
Assets/Plugins/vFavorites/Manual.pdf.meta
Normal file
7
Assets/Plugins/vFavorites/Manual.pdf.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 842468ccf23564770b4b1cb9f7eca30e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
16
Assets/Plugins/vFavorites/VFavorites.asmdef
Normal file
16
Assets/Plugins/vFavorites/VFavorites.asmdef
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "VFavorites",
|
||||
"rootNamespace": "",
|
||||
"references": [],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
7
Assets/Plugins/vFavorites/VFavorites.asmdef.meta
Normal file
7
Assets/Plugins/vFavorites/VFavorites.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d8266c7db84a045d3b706b23e60aa197
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1976
Assets/Plugins/vFavorites/VFavorites.cs
Normal file
1976
Assets/Plugins/vFavorites/VFavorites.cs
Normal file
File diff suppressed because it is too large
Load Diff
11
Assets/Plugins/vFavorites/VFavorites.cs.meta
Normal file
11
Assets/Plugins/vFavorites/VFavorites.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6651039474d594cdd91489768cf293f6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
225
Assets/Plugins/vFavorites/VFavoritesData.cs
Normal file
225
Assets/Plugins/vFavorites/VFavoritesData.cs
Normal file
@@ -0,0 +1,225 @@
|
||||
#if UNITY_EDITOR
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
using UnityEditor;
|
||||
using UnityEditor.ShortcutManagement;
|
||||
using System.Reflection;
|
||||
using System.Linq;
|
||||
using UnityEngine.UIElements;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEditor.SceneManagement;
|
||||
using Type = System.Type;
|
||||
using static VFavorites.VFavoritesState;
|
||||
using static VFavorites.Libs.VUtils;
|
||||
using static VFavorites.Libs.VGUI;
|
||||
|
||||
|
||||
|
||||
namespace VFavorites
|
||||
{
|
||||
public class VFavoritesData : ScriptableObject
|
||||
{
|
||||
public List<Page> pages = new List<Page>();
|
||||
|
||||
public Page curPage
|
||||
{
|
||||
get
|
||||
{
|
||||
while (curPageIndex >= pages.Count - 1)
|
||||
pages.Add(new Page("Page " + (pages.Count + 1)));
|
||||
|
||||
return pages[curPageIndex];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public int curPageIndex { get => VFavoritesState.instance.curPageIndex; set => VFavoritesState.instance.curPageIndex = value; }
|
||||
|
||||
public float rowScale = 1;
|
||||
|
||||
|
||||
[System.Serializable]
|
||||
public class Page
|
||||
{
|
||||
public List<Item> items = new List<Item>();
|
||||
|
||||
public string name = "";
|
||||
|
||||
public Page(string name) => this.name = name;
|
||||
|
||||
|
||||
|
||||
|
||||
[System.NonSerialized]
|
||||
public List<float> _rowGaps = new List<float>();
|
||||
public List<float> rowGaps
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_rowGaps == null)
|
||||
_rowGaps = new List<float>();
|
||||
|
||||
while (_rowGaps.Count < items.Count + 1) _rowGaps.Add(0);
|
||||
while (_rowGaps.Count > items.Count + 1) _rowGaps.RemoveLast();
|
||||
|
||||
return _rowGaps;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public float scrollPos { get => state.scrollPos; set => state.scrollPos = value; }
|
||||
|
||||
public long lastItemSelectTime_ticks { get => state.lastItemSelectTime_ticks; set => state.lastItemSelectTime_ticks = value; }
|
||||
public long lastItemDragTime_ticks { get => state.lastItemDragTime_ticks; set => state.lastItemDragTime_ticks = value; }
|
||||
|
||||
|
||||
public PageState state
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!VFavoritesState.instance.pageStates_byPageId.ContainsKey(id))
|
||||
VFavoritesState.instance.pageStates_byPageId[id] = new PageState();
|
||||
|
||||
return VFavoritesState.instance.pageStates_byPageId[id];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public int id
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_id == 0)
|
||||
_id = Random.value.GetHashCode();
|
||||
|
||||
return _id;
|
||||
|
||||
}
|
||||
}
|
||||
public int _id = 0;
|
||||
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class Item
|
||||
{
|
||||
public GlobalID globalId;
|
||||
|
||||
|
||||
public Type type => Type.GetType(_typeString) ?? typeof(DefaultAsset);
|
||||
public string _typeString;
|
||||
|
||||
public Object obj => _obj != null ? _obj : (_obj = globalId.GetObject());
|
||||
public Object _obj;
|
||||
|
||||
|
||||
public bool isSceneGameObject;
|
||||
public bool isFolder;
|
||||
public bool isAsset;
|
||||
|
||||
|
||||
public bool isLoadable => obj != null;
|
||||
|
||||
public bool isDeleted
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!isSceneGameObject)
|
||||
return !isLoadable;
|
||||
|
||||
if (isLoadable)
|
||||
return false;
|
||||
|
||||
if (!AssetDatabase.LoadAssetAtPath<SceneAsset>(globalId.guid.ToPath()))
|
||||
return true;
|
||||
|
||||
for (int i = 0; i < EditorSceneManager.sceneCount; i++)
|
||||
if (EditorSceneManager.GetSceneAt(i).path == globalId.guid.ToPath())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public string assetPath => globalId.guid.ToPath();
|
||||
|
||||
|
||||
public Item(Object o)
|
||||
{
|
||||
globalId = o.GetGlobalID();
|
||||
|
||||
|
||||
isSceneGameObject = o is GameObject go && go.scene.rootCount != 0;
|
||||
isFolder = AssetDatabase.IsValidFolder(o.GetPath());
|
||||
isAsset = !isSceneGameObject && !isFolder;
|
||||
|
||||
_typeString = o.GetType().AssemblyQualifiedName;
|
||||
|
||||
_name = o.name;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public string name
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!isLoadable) return _name;
|
||||
|
||||
if (assetPath.GetExtension() == ".cs")
|
||||
_name = obj.name.Decamelcase();
|
||||
else
|
||||
_name = obj.name;
|
||||
|
||||
return _name;
|
||||
|
||||
}
|
||||
}
|
||||
public string _name { get => state._name; set => state._name = value; }
|
||||
|
||||
public string sceneGameObjectIconName { get => state.sceneGameObjectIconName; set => state.sceneGameObjectIconName = value; }
|
||||
|
||||
public long lastSelectTime_ticks { get => state.lastSelectTime_ticks; set => state.lastSelectTime_ticks = value; }
|
||||
public bool isSelected { get => state.isSelected; set => state.isSelected = value; }
|
||||
|
||||
|
||||
|
||||
public ItemState state
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!VFavoritesState.instance.itemStates_byItemId.ContainsKey(id))
|
||||
VFavoritesState.instance.itemStates_byItemId[id] = new ItemState();
|
||||
|
||||
return VFavoritesState.instance.itemStates_byItemId[id];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public int id
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_id == 0)
|
||||
_id = Random.value.GetHashCode();
|
||||
|
||||
return _id;
|
||||
|
||||
}
|
||||
}
|
||||
public int _id = 0;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
11
Assets/Plugins/vFavorites/VFavoritesData.cs.meta
Normal file
11
Assets/Plugins/vFavorites/VFavoritesData.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 066cf82f8f80d408c856e48fc8f1127b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1816
Assets/Plugins/vFavorites/VFavoritesLibs.cs
Normal file
1816
Assets/Plugins/vFavorites/VFavoritesLibs.cs
Normal file
File diff suppressed because it is too large
Load Diff
11
Assets/Plugins/vFavorites/VFavoritesLibs.cs.meta
Normal file
11
Assets/Plugins/vFavorites/VFavoritesLibs.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 38092f82a4c054086826261d88277942
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
137
Assets/Plugins/vFavorites/VFavoritesMenu.cs
Normal file
137
Assets/Plugins/vFavorites/VFavoritesMenu.cs
Normal file
@@ -0,0 +1,137 @@
|
||||
#if UNITY_EDITOR
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using static VFavorites.Libs.VUtils;
|
||||
using static VFavorites.Libs.VGUI;
|
||||
|
||||
|
||||
|
||||
namespace VFavorites
|
||||
{
|
||||
public class VFavoritesMenu
|
||||
{
|
||||
|
||||
public static bool pageScrollEnabled { get => EditorPrefsCached.GetBool("vFavorites-pageScrollEnabled", true); set => EditorPrefsCached.SetBool("vFavorites-pageScrollEnabled", value); }
|
||||
public static bool numberKeysEnabled { get => EditorPrefsCached.GetBool("vFavorites-numberKeysEnabled", true); set => EditorPrefsCached.SetBool("vFavorites-numberKeysEnabled", value); }
|
||||
public static bool arrowKeysEnabled { get => EditorPrefsCached.GetBool("vFavorites-arrowKeysEnabled", true); set => EditorPrefsCached.SetBool("vFavorites-arrowKeysEnabled", value); }
|
||||
|
||||
public static bool fadeAnimationsEnabled { get => EditorPrefsCached.GetBool("vFavorites-fadeAnimationsEnabled", true); set => EditorPrefsCached.SetBool("vFavorites-fadeAnimationsEnabled", value); }
|
||||
public static bool pageScrollAnimationEnabled { get => EditorPrefsCached.GetBool("vFavorites-pageScrollAnimationEnabled", true); set => EditorPrefsCached.SetBool("vFavorites-pageScrollAnimationEnabled", value); }
|
||||
|
||||
public static int activeOnKeyCombination { get => EditorPrefsCached.GetInt("vFavorites-activeOnKeyCombination", 0); set => EditorPrefsCached.SetInt("vFavorites-activeOnKeyCombination", value); }
|
||||
public static bool activeOnAltEnabled { get => activeOnKeyCombination == 0; set => activeOnKeyCombination = 0; }
|
||||
public static bool activeOnAltShiftEnabled { get => activeOnKeyCombination == 1; set => activeOnKeyCombination = 1; }
|
||||
public static bool activeOnCtrlAltEnabled { get => activeOnKeyCombination == 2; set => activeOnKeyCombination = 2; }
|
||||
|
||||
public static bool pluginDisabled { get => EditorPrefsCached.GetBool("vFavorites-pluginDisabled", false); set => EditorPrefsCached.SetBool("vFavorites-pluginDisabled", value); }
|
||||
|
||||
|
||||
|
||||
|
||||
const string dir = "Tools/vFavorites/";
|
||||
|
||||
const string pageScroll = dir + "Scroll to change page";
|
||||
const string numberKeys = dir + "1-9 keys to change page";
|
||||
const string arrowKeys = dir + "Arrow keys to change page or selection ";
|
||||
|
||||
const string fadeAnimations = dir + "Fade animations";
|
||||
const string pageScrollAnimation = dir + "Page scroll animation";
|
||||
|
||||
const string activeOnAlt = dir + "Holding Alt";
|
||||
const string activeOnAltShift = dir + "Holding Alt and Shift";
|
||||
#if UNITY_EDITOR_OSX
|
||||
const string activeOnCtrlAlt = dir + "Holding Cmd and Alt";
|
||||
#else
|
||||
const string activeOnCtrlAlt = dir + "Holding Ctrl and Alt";
|
||||
|
||||
#endif
|
||||
|
||||
const string disablePlugin = dir + "Disable vFavorites";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MenuItem(dir + "Shortcuts", false, 1)] static void dadsas() { }
|
||||
[MenuItem(dir + "Shortcuts", true, 1)] static bool dadsas123() => false;
|
||||
|
||||
[MenuItem(pageScroll, false, 2)] static void dadsadasadsdadsas() => pageScrollEnabled = !pageScrollEnabled;
|
||||
[MenuItem(pageScroll, true, 2)] static bool dadsadasdadsdasadsas() { Menu.SetChecked(pageScroll, pageScrollEnabled); return !pluginDisabled; }
|
||||
|
||||
[MenuItem(numberKeys, false, 4)] static void dadsadadsas() => numberKeysEnabled = !numberKeysEnabled;
|
||||
[MenuItem(numberKeys, true, 4)] static bool dadsaddasadsas() { Menu.SetChecked(numberKeys, numberKeysEnabled); return !pluginDisabled; }
|
||||
|
||||
[MenuItem(arrowKeys, false, 5)] static void dadsadaddassas() => arrowKeysEnabled = !arrowKeysEnabled;
|
||||
[MenuItem(arrowKeys, true, 5)] static bool dadadssaddasadsas() { Menu.SetChecked(arrowKeys, arrowKeysEnabled); return !pluginDisabled; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MenuItem(dir + "Animations", false, 101)] static void dadsadsas() { }
|
||||
[MenuItem(dir + "Animations", true, 101)] static bool dadadssas123() => false;
|
||||
|
||||
[MenuItem(fadeAnimations, false, 102)] static void dadsdasadadsas() => fadeAnimationsEnabled = !fadeAnimationsEnabled;
|
||||
[MenuItem(fadeAnimations, true, 102)] static bool dadsadadsadsdasadsas() { Menu.SetChecked(fadeAnimations, fadeAnimationsEnabled); return !pluginDisabled; }
|
||||
|
||||
[MenuItem(pageScrollAnimation, false, 103)] static void dadsdasdasadadsas() => pageScrollAnimationEnabled = !pageScrollAnimationEnabled;
|
||||
[MenuItem(pageScrollAnimation, true, 103)] static bool dadsadaddassadsdasadsas() { Menu.SetChecked(pageScrollAnimation, pageScrollAnimationEnabled); return !pluginDisabled; }
|
||||
|
||||
|
||||
|
||||
|
||||
[MenuItem(dir + "Open when", false, 1001)] static void dadsaddssas() { }
|
||||
[MenuItem(dir + "Open when", true, 1001)] static bool dadadsssas123() => false;
|
||||
|
||||
[MenuItem(activeOnAlt, false, 1002)] static void dadsdasasdadsas() => activeOnAltEnabled = !activeOnAltEnabled;
|
||||
[MenuItem(activeOnAlt, true, 1002)] static bool dadsadadssdadsdasadsas() { Menu.SetChecked(activeOnAlt, activeOnAltEnabled); return !pluginDisabled; }
|
||||
|
||||
[MenuItem(activeOnAltShift, false, 1003)] static void dadsdasasdadsadsas() => activeOnAltShiftEnabled = !activeOnAltShiftEnabled;
|
||||
[MenuItem(activeOnAltShift, true, 1003)] static bool dadsadadssdasdadsdasadsas() { Menu.SetChecked(activeOnAltShift, activeOnAltShiftEnabled); return !pluginDisabled; }
|
||||
|
||||
[MenuItem(activeOnCtrlAlt, false, 1004)] static void dadsdasadasadssdadsas() => activeOnCtrlAltEnabled = !activeOnCtrlAltEnabled;
|
||||
[MenuItem(activeOnCtrlAlt, true, 1004)] static bool dadsadadsadssdadsdasadsas() { Menu.SetChecked(activeOnCtrlAlt, activeOnCtrlAltEnabled); return !pluginDisabled; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MenuItem(dir + "More", false, 10001)] static void daasadsddsas() { }
|
||||
[MenuItem(dir + "More", true, 10001)] static bool dadsadsdasas123() => false;
|
||||
|
||||
[MenuItem(dir + "Open manual", false, 10002)]
|
||||
static void dadadssadsas() => AssetDatabase.OpenAsset(AssetDatabase.LoadAssetAtPath<Object>(GetScriptPath("VFavorites").GetParentPath().CombinePath("Manual.pdf")));
|
||||
|
||||
[MenuItem(dir + "Join our Discord", false, 10003)]
|
||||
static void dadasdsas() => Application.OpenURL("https://discord.gg/pUektnZeJT");
|
||||
|
||||
|
||||
// [MenuItem(dir + "Check out vInspector 2", false, 10003)]
|
||||
// static void dadadssadsas() => Application.OpenURL("https://assetstore.unity.com/packages/slug/252297?aid=1100lGLBn&pubref=checkoutvfav");
|
||||
|
||||
// [MenuItem(dir + "Get more Editor Enhancers/Get vHierarchy 2", false, 10003)]
|
||||
// static void dadadssadsas() => Application.OpenURL("https://assetstore.unity.com/packages/slug/251320?aid=1100lGLBn&pubref=menucheckout");
|
||||
|
||||
// [MenuItem(dir + "Get more Editor Enhancers/Get vFolders 2", false, 10004)]
|
||||
// static void dadadssaasddsas() => Application.OpenURL("https://assetstore.unity.com/packages/slug/263644?aid=1100lGLBn&pubref=menucheckout");
|
||||
|
||||
// [MenuItem(dir + "Get more Editor Enhancers/Get vTabs 2", false, 10005)]
|
||||
// static void dadadsadssaasddsas() => Application.OpenURL("https://assetstore.unity.com/packages/slug/263645?aid=1100lGLBn&pubref=menucheckout");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MenuItem(disablePlugin, false, 100001)] static void dadsadsdasadasdasdsadadsas() { pluginDisabled = !pluginDisabled; UnityEditor.Compilation.CompilationPipeline.RequestScriptCompilation(); }
|
||||
[MenuItem(disablePlugin, true, 100001)] static bool dadsaddssdaasadsadadsdasadsas() { Menu.SetChecked(disablePlugin, pluginDisabled); return true; }
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
11
Assets/Plugins/vFavorites/VFavoritesMenu.cs.meta
Normal file
11
Assets/Plugins/vFavorites/VFavoritesMenu.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65f8f6586ea4740238f667f8337cf6fb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
6
Assets/Plugins/vFavorites/VFavoritesMenuItems.cs
Normal file
6
Assets/Plugins/vFavorites/VFavoritesMenuItems.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
// this file was present in a previus version and is supposed to be deleted now
|
||||
// but asset store update delivery system doesn't allow deleting files
|
||||
// so instead this file is now emptied
|
||||
// feel free to delete it if you want
|
||||
11
Assets/Plugins/vFavorites/VFavoritesMenuItems.cs.meta
Normal file
11
Assets/Plugins/vFavorites/VFavoritesMenuItems.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1b1b30cd63e14da9a295742be768842
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
57
Assets/Plugins/vFavorites/VFavoritesState.cs
Normal file
57
Assets/Plugins/vFavorites/VFavoritesState.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
#if UNITY_EDITOR
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
using UnityEditor;
|
||||
using UnityEditor.ShortcutManagement;
|
||||
using System.Reflection;
|
||||
using System.Linq;
|
||||
using UnityEngine.UIElements;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEditor.SceneManagement;
|
||||
using Type = System.Type;
|
||||
using static VFavorites.Libs.VUtils;
|
||||
using static VFavorites.Libs.VGUI;
|
||||
|
||||
|
||||
namespace VFavorites
|
||||
{
|
||||
[FilePath("Library/vFavorites State.asset", FilePathAttribute.Location.ProjectFolder)]
|
||||
public class VFavoritesState : ScriptableSingleton<VFavoritesState>
|
||||
{
|
||||
public int curPageIndex;
|
||||
|
||||
public SerializableDictionary<int, PageState> pageStates_byPageId = new SerializableDictionary<int, PageState>();
|
||||
|
||||
public SerializableDictionary<int, ItemState> itemStates_byItemId = new SerializableDictionary<int, ItemState>();
|
||||
|
||||
|
||||
[System.Serializable]
|
||||
public class PageState
|
||||
{
|
||||
public long lastItemSelectTime_ticks;
|
||||
public long lastItemDragTime_ticks;
|
||||
|
||||
public float scrollPos;
|
||||
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class ItemState
|
||||
{
|
||||
public string _name;
|
||||
|
||||
public string sceneGameObjectIconName;
|
||||
|
||||
public long lastSelectTime_ticks;
|
||||
public bool isSelected;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static void Save() => instance.Save(true);
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
11
Assets/Plugins/vFavorites/VFavoritesState.cs.meta
Normal file
11
Assets/Plugins/vFavorites/VFavoritesState.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 362e220c378db4e97ae41fa35a6fb58f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
16
Assets/Plugins/vFavorites/vFavorites Data.asset
Normal file
16
Assets/Plugins/vFavorites/vFavorites Data.asset
Normal file
@@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 066cf82f8f80d408c856e48fc8f1127b, type: 3}
|
||||
m_Name: vFavorites Data
|
||||
m_EditorClassIdentifier:
|
||||
pages: []
|
||||
rowScale: 1
|
||||
8
Assets/Plugins/vFavorites/vFavorites Data.asset.meta
Normal file
8
Assets/Plugins/vFavorites/vFavorites Data.asset.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d87c77a488f1b9a438e7202836e4f5df
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user