Exemplo n.º 1
0
        private static string[] OnWillSaveAssets(string[] paths)
        {
            EditorApplication.delayCall += () =>
            {
                foreach (var path in paths)
                {
                    SmartNetIdentityManager.Add(path);
                }

                IdentityLibrary.RemoveNullReferences();
            };

            return(paths);
        }
Exemplo n.º 2
0
        private static AssetMoveResult OnWillMoveAsset(string fromPath, string toPath)
        {
            if (SmartNetIdentityManager.LastKnownPath == fromPath)
            {
                SmartNetIdentityManager.SetLastKnownPath(toPath);
            }

            EditorApplication.delayCall += () =>
            {
                SmartNetIdentityManager.Add(fromPath);
                SmartNetIdentityManager.Add(toPath);
            };

            return(AssetMoveResult.DidNotMove);
        }
Exemplo n.º 3
0
 private static void OnWillCreateAsset(string assetPath)
 {
     EditorApplication.delayCall += () => { SmartNetIdentityManager.Add(assetPath); };
 }